diff options
author | DzinX <dzinxed@gmail.com> | 2012-09-21 10:08:39 +0200 |
---|---|---|
committer | DzinX <dzinxed@gmail.com> | 2012-09-21 10:08:39 +0200 |
commit | b1187b63270386aaf45c297a92995d86dccf4f22 (patch) | |
tree | 5cfddf4957d1a2c9d9bedb55308f6192a53bbff3 /rdflib/util.py | |
parent | d16183081e99b93bc90366b939ead520e1227afa (diff) | |
download | rdflib-b1187b63270386aaf45c297a92995d86dccf4f22.tar.gz |
Removed unused code that broke Windows tests
There are two statements in utils.parse_date_time that don't do anything
useful (the result is replaced by statements that follow), but that
don't work on Windows for given doctests. I removed them.
Diffstat (limited to 'rdflib/util.py')
-rw-r--r-- | rdflib/util.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/rdflib/util.py b/rdflib/util.py index 6a8aab48..4fac9c1a 100644 --- a/rdflib/util.py +++ b/rdflib/util.py @@ -34,7 +34,6 @@ from time import altzone #from time import daylight from time import gmtime from time import localtime -from time import mktime from time import time from time import timezone @@ -295,10 +294,6 @@ def parse_date_time(val): year, month, day = ymd.split("-") hour, minute, second = hms.split(":") - t = mktime((int(year), int(month), int(day), int(hour), - int(minute), int(second), 0, 0, 0)) - t = t - timezone + tz_offset - # Alternative handles case when local time is DST t = timegm((int(year), int(month), int(day), int(hour), int(minute), int(second), 0, 0, 0)) t = t + tz_offset |