Changeset 797:7a14276b224c

Show
Ignore:
Timestamp:
2009-05-10 07:52:09 (16 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
convert_revision:
svn:778c30c8-61e0-0310-89d4-fe2f97a467b2/trunk@865
Message:
In the docstring for `synchronize_times`, point out that the time
shift can also be set explicitly with `set_time_shift`.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ftputil.py

    r782 r797  
    371371        Synchronize the local times of FTP client and server. This 
    372372        is necessary to let `upload_if_newer` and `download_if_newer` 
    373         work correctly. 
     373        work correctly. If `synchronize_times` isn't applicable 
     374        (see below), the time shift can still be set explicitly with 
     375        `set_time_shift`. 
    374376 
    375377        This implementation of `synchronize_times` requires _all_ of 
     
    380382          current when `synchronize_times` is called. 
    381383 
    382         The usual usage pattern of `synchronize_times` is to call it 
     384        The common usage pattern of `synchronize_times` is to call it 
    383385        directly after the connection is established. (As can be 
    384386        concluded from the points above, this requires write access