summaryrefslogtreecommitdiff
path: root/leapsecond.py
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2017-07-26 16:21:39 -0700
committerGary E. Miller <gem@rellim.com>2017-07-26 16:21:39 -0700
commitc6b917252c5982f0ab5d98b3fa9815b8d50c7207 (patch)
treecd3cb3fd990cb37deaa69e511a44d884ed08fc08 /leapsecond.py
parentc44c28e15c82b78c88296e7cdfad3c9ee0305548 (diff)
downloadgpsd-c6b917252c5982f0ab5d98b3fa9815b8d50c7207.tar.gz
leapsecond.py: fix pylint nit
pylint does not like changing the type of a variable. In this case tupples to ints. So add an intermediate variable.
Diffstat (limited to 'leapsecond.py')
-rwxr-xr-xleapsecond.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/leapsecond.py b/leapsecond.py
index 0c17d519..8efa786a 100755
--- a/leapsecond.py
+++ b/leapsecond.py
@@ -188,13 +188,13 @@ def last_insertion_time():
tm_mday = 1
tm_hour = tm_min = tm_sec = 0
tm_mon = 1
- jan = (tm_year, tm_mon, tm_mday, tm_hour, tm_min,
+ jan_t = (tm_year, tm_mon, tm_mday, tm_hour, tm_min,
tm_sec, tm_wday, tm_yday, tm_isdst)
- jan = int(calendar.timegm(jan))
+ jan = int(calendar.timegm(jan_t))
tm_mon = 7
- jul = (tm_year, tm_mon, tm_mday, tm_hour, tm_min,
+ jul_t = (tm_year, tm_mon, tm_mday, tm_hour, tm_min,
tm_sec, tm_wday, tm_yday, tm_isdst)
- jul = int(calendar.timegm(jul))
+ jul = int(calendar.timegm(jul_t))
# We have the UTC times of the potential insertion points this year.
now = time.time()
if now > jul: