소스 검색

Small pep8 correction.

Jeroen 12 년 전
부모
커밋
3af7db7ad8
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      command.py

+ 1 - 2
command.py

@@ -8,7 +8,7 @@ class MoveFileCommand(object):
 
 
     def execute(self):
     def execute(self):
         self()
         self()
-        
+
     def __call__(self):
     def __call__(self):
         print('renaming {} to {}'.format(self.src, self.dest))
         print('renaming {} to {}'.format(self.src, self.dest))
         os.rename(self.src, self.dest)
         os.rename(self.src, self.dest)
@@ -25,7 +25,6 @@ if __name__ == "__main__":
     command_stack.append(MoveFileCommand('foo.txt', 'bar.txt'))
     command_stack.append(MoveFileCommand('foo.txt', 'bar.txt'))
     command_stack.append(MoveFileCommand('bar.txt', 'baz.txt'))
     command_stack.append(MoveFileCommand('bar.txt', 'baz.txt'))
 
 
-
     # they can be executed later on
     # they can be executed later on
     for cmd in command_stack:
     for cmd in command_stack:
         cmd.execute()
         cmd.execute()