Commits

Sebastian Wiesner committed f3128b1

Some slight cleanup

Comments (0)

Files changed (1)

programoutput/sphinxcontrib/programoutput.py

     parts = [int(v.strip()) for v in value.split(',')]
     if len(parts) > 2:
         raise ValueError('too many slice parts')
-    return tuple((parts + [None]*2)[:2])
+    return tuple((parts + [None] * 2)[:2])
 
 
 class ProgramOutputDirective(rst.Directive):
 _Command = namedtuple('Command', 'command shell hide_standard_error')
 
 
-class Command(_Command): #pylint: disable=W0232
+class Command(_Command):
     """
     A command to be executed.
     """
                 command = self.command
         else:
             if sys.version_info[0] < 3 and isinstance(self.command, unicode):
-                command = shlex.split(self.command.encode(sys.getfilesystemencoding()))
+                command = shlex.split(self.command.encode(
+                    sys.getfilesystemencoding()))
             elif isinstance(self.command, str):
                 command = shlex.split(self.command)
             else:
         return repr(self.command)
 
 
-class ProgramOutputCache(defaultdict): # pylint: disable=W0232
+class ProgramOutputCache(defaultdict):
     """
     Execute command and cache their output.