Ignore:
Timestamp:
Dec 26, 2018, 8:15:44 PM (17 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Use `print` as a function in non-code

Add parentheses for `print` calls in

- documentation
- docstrings
- comments
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftputil/sync.py

    r1723 r1727  
    8282        #TODO Handle setting of target mtime according to source mtime
    8383        # (beware of rootdir anomalies; try to handle them as well).
    84         #print "Making", target_dir
     84        #print("Making", target_dir)
    8585        if self._target.path.isfile(target_dir):
    8686            raise ftputil.error.SyncError(
    87                   "target dir '{}' is actually a file".format(target_dir))
     87                    "target dir '{}' is actually a file".format(target_dir))
    8888        # Deliberately use an `isdir` test instead of `try/except`. The
    8989        #  latter approach might mask other errors we want to see, e. g.
     
    100100        #TODO Handle setting of target mtime according to source mtime
    101101        # (beware of rootdir anomalies; try to handle them as well).
    102         #print "Syncing", source_file, "->", target_file
     102        #print("Syncing", source_file, "->", target_file)
    103103        source = self._source.open(source_file, "rb")
    104104        try:
Note: See TracChangeset for help on using the changeset viewer.