Bläddra i källkod

Strip trailing whitespace

Mike Naberezny 11 år sedan
förälder
incheckning
cb37ed9538
3 ändrade filer med 7 tillägg och 7 borttagningar
  1. 5 5
      supervisor/compat.py
  2. 1 1
      supervisor/http_client.py
  3. 1 1
      supervisor/supervisorctl.py

+ 5 - 5
supervisor/compat.py

@@ -11,7 +11,7 @@ if PY3:
     def as_bytes(s): return s if isinstance(s,bytes) else s.encode('utf8')
     def as_string(s): return s if isinstance(s,str) else s.decode('utf8')
     from functools import reduce
-    
+
 else:
     long = long
     raw_input = raw_input
@@ -66,12 +66,12 @@ try:
 except ImportError:
     import urlparse
     import urllib
-    
+
 if PY3:
     from base64 import encodebytes as encodestring
 else:
     from base64 import encodestring
-    
+
 try:
     from hashlib import sha1
 except ImportError:
@@ -93,7 +93,7 @@ try:
     from StringIO import StringIO
 except ImportError:
     from io import StringIO
-    
+
 try:
     #noinspection PyUnresolvedReferences
     from sys import maxint
@@ -115,7 +115,7 @@ try:
 except ImportError:
     from base64 import decodestring, encodestring
 
-    
+
 if PY3:
     func_attribute = '__func__'
 else:

+ 1 - 1
supervisor/http_client.py

@@ -21,7 +21,7 @@ class Listener(object):
 
     def error(self, url, error):
         print_function(url, error)
-    
+
     def response_header(self, url, name, value):
         pass
 

+ 1 - 1
supervisor/supervisorctl.py

@@ -218,7 +218,7 @@ class Controller(cmd.Cmd):
                     '[rpcinterface:supervisor] section is enabled in the '
                     'configuration file (see sample.conf).')
                 return False
-            raise 
+            raise
         except socket.error:
             why = sys.exc_info()[1]
             if why.args[0] == errno.ECONNREFUSED: