Commits

Stefan Schwarzer committed 0c8c7ae

Reformatted slightly for better PEP 8 compatibility.

  • Participants
  • Parent commits 002060b

Comments (0)

Files changed (2)

ftputil/ftp_sync.py

-# Copyright (C) 2007, Stefan Schwarzer <sschwarzer@sschwarzer.net>
+# Copyright (C) 2007-2012, Stefan Schwarzer <sschwarzer@sschwarzer.net>
 # See the file LICENSE for licensing terms.
 
 """
 
 
 # Used for copying file objects; value is 64 KB.
-CHUNK_SIZE = 64*1024
+CHUNK_SIZE = 64 * 1024
 
 
 class LocalHost(object):
+
     def open(self, path, mode):
         """
         Return a Python file object for file name `path`, opened in
 
 
 class Syncer(object):
+
     def __init__(self, source, target):
         """
         Init the `FTPSyncer` instance.
             self._sync_file(source_path, target_path)
         else:
             self._sync_tree(source_path, target_path)
-

test/test_ftp_sync.py

 from ftputil import ftp_sync
 
 
-# Assume the test subdirectories are or will be in the current directory
+# Assume the test subdirectories are or will be in the current directory.
 TEST_ROOT = os.getcwd()
 
 
 class TestLocalToLocal(unittest.TestCase):
+
     def setUp(self):
         if not os.path.exists("test_empty"):
             os.mkdir("test_empty")