summaryrefslogtreecommitdiff
path: root/leapsecond.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-15 09:32:26 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-15 09:32:26 -0500
commitc2243501cebbcd92e080fba6ee5fe372a9897f5a (patch)
tree094803ff8f055659a8365eb7539837319fa3515e /leapsecond.py
parent180fb26501501742b8464e916a8ebad1fe34141f (diff)
downloadgpsd-c2243501cebbcd92e080fba6ee5fe372a9897f5a.tar.gz
Partial pylint cleanup. All regression tests pass, xgps works.
Diffstat (limited to 'leapsecond.py')
-rwxr-xr-xleapsecond.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/leapsecond.py b/leapsecond.py
index 79d24b3b..3bf670c5 100755
--- a/leapsecond.py
+++ b/leapsecond.py
@@ -132,11 +132,11 @@ def last_insertion_time():
tm_mday = 1
tm_hour = tm_min = tm_sec = 0
- tm_mon = 1;
+ tm_mon = 1
jan = (tm_year, tm_mon, tm_mday, tm_hour, tm_min,
tm_sec, tm_wday, tm_yday, tm_isdst)
jan = int(calendar.timegm(jan))
- tm_mon = 7;
+ tm_mon = 7
jul = (tm_year, tm_mon, tm_mday, tm_hour, tm_min,
tm_sec, tm_wday, tm_yday, tm_isdst)
jul = int(calendar.timegm(jul))
@@ -182,7 +182,6 @@ def get():
except (IOError, OSError):
if verbose:
print >>sys.stderr, "can't write %s" % __cachepath
- pass
return (current_offset, valid_from)
def save_leapseconds(outfile):
@@ -333,9 +332,8 @@ def leapbound(year, month):
tv = "%s-12-31T23:59:59" % year
return tv
-"""
-Main part
-"""
+# Main part
+
def usage():
print __doc__
raise SystemExit, 0