Browse Source

Fix style.

Jelmer Vernooij 6 years ago
parent
commit
2001b954f1
2 changed files with 5 additions and 5 deletions
  1. 5 3
      dulwich/client.py
  2. 0 2
      dulwich/contrib/paramiko_vendor.py

+ 5 - 3
dulwich/client.py

@@ -642,7 +642,8 @@ def remote_error_from_stderr(stderr):
         return HangupException()
     for l in stderr.readlines():
         if l.startswith(b'ERROR: '):
-            return GitProtocolError(l[len(b'ERROR: '):].decode('utf-8', 'replace'))
+            return GitProtocolError(
+                l[len(b'ERROR: '):].decode('utf-8', 'replace'))
         return GitProtocolError(l.decode('utf-8', 'replace'))
     return HangupException()
 
@@ -968,8 +969,9 @@ class SubprocessGitClient(TraditionalGitClient):
                              stdout=subprocess.PIPE,
                              stderr=subprocess.PIPE)
         pw = SubprocessWrapper(p)
-        return Protocol(pw.read, pw.write, pw.close,
-                        report_activity=self._report_activity), pw.can_read, p.stderr
+        return (Protocol(pw.read, pw.write, pw.close,
+                         report_activity=self._report_activity),
+                pw.can_read, p.stderr)
 
 
 class LocalGitClient(GitClient):

+ 0 - 2
dulwich/contrib/paramiko_vendor.py

@@ -32,11 +32,9 @@ This implementation is experimental and does not have any tests.
 
 import paramiko
 import paramiko.client
-import threading
 
 
 class _ParamikoWrapper(object):
-    STDERR_READ_N = 2048  # 2k
 
     def __init__(self, client, channel):
         self.client = client