Changeset 1731:a4c634fe6853


Ignore:
Timestamp:
Dec 26, 2018, 8:52:16 PM (9 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Remove unused variable `hour`

Also fix docstring. Rounding to full hours would be an error for
timezones that contain 0.5-hour or 0.25-hour offsets.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftputil/host.py

    r1723 r1731  
    318318        """
    319319        Return the given time shift in seconds, but rounded to
    320         full hours. The argument is also assumed to be given in
     320        15-minute units. The argument is also assumed to be given in
    321321        seconds.
    322322        """
    323323        minute = 60.0
    324         hour = 60.0 * minute
    325324        # Avoid division by zero below.
    326325        if time_shift == 0:
Note: See TracChangeset for help on using the changeset viewer.