Changeset 1896:aaeeadd56119


Ignore:
Timestamp:
Jan 1, 2020, 10:43:33 PM (3 weeks ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Use consistent statement order

Use consistent statement order in `if` and `else` branch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftputil/stat.py

    r1875 r1896  
    280280        if ":" not in year_or_time:
    281281            # `year_or_time` is really a year.
     282            st_mtime_precision = DAY_PRECISION
    282283            year, hour, minute = self._as_int(year_or_time, "year"), 0, 0
    283284            st_mtime = self._mktime((year, month, day, hour, minute, 0, 0, 0, -1))
    284             st_mtime_precision = DAY_PRECISION
    285         else:
     285        else:
     286            # `year_or_time` is a time hh:mm.
    286287            st_mtime_precision = MINUTE_PRECISION
    287             # `year_or_time` is a time hh:mm.
    288288            hour, minute = year_or_time.split(":")
    289289            year, hour, minute = (
Note: See TracChangeset for help on using the changeset viewer.