Skip to content

Commit 25a4a34

Browse files
committed
flake8 undefined symbol fixes.
1 parent af0b29e commit 25a4a34

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

roundup/cgi/templating.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
from .KeywordsExpr import render_keywords_expression_editor
3939

4040
from roundup.cgi.timestamp import pack_timestamp
41+
from roundup.cgi import TranslationService
4142

4243
import roundup.anypy.random_ as random_
4344
try:

roundup/date.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,9 @@ def __init__(self, spec='.', offset=0, add_granularity=False,
344344
self.year, self.month, self.day, self.hour, self.minute, \
345345
self.second = spec.timetuple()[:6]
346346
else:
347+
# FIXME: what is tz supposed to be? is it the trailing
348+
# tz on the spec? Is it the offset?
349+
tz = None
347350
TZ = get_timezone(tz)
348351
self.year, self.month, self.day, self.hour, self.minute, \
349352
self.second = TZ.localize(spec).utctimetuple()[:6]

0 commit comments

Comments
 (0)