Skip to content

Commit

Permalink
Merge pull request #140 from ChanceNCounter/fix/stray-print
Browse files Browse the repository at this point in the history
Fix/stray print
  • Loading branch information
krisgesling authored Nov 2, 2020
2 parents 903c64c + b9a89ce commit 1f17d1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lingua_franca/lang/format_cs.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def pronounce_number_cs(number, places=2, short_scale=True, scientific=False,
# exception used to catch any unforseen edge cases
# will default back to normal subroutine
except Exception as e:
# TODO this probably shouldn't go to stdout
print('ERROR: Exception in pronounce_number_cs: {}' + repr(e))

# check for a direct match
Expand Down
1 change: 1 addition & 0 deletions lingua_franca/lang/format_en.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def pronounce_number_en(number, places=2, short_scale=True, scientific=False,
# exception used to catch any unforseen edge cases
# will default back to normal subroutine
except Exception as e:
# TODO this probably shouldn't go to stdout
print('ERROR: Exception in pronounce_number_en: {}' + repr(e))

# check for a direct match
Expand Down
3 changes: 1 addition & 2 deletions lingua_franca/lang/parse_es.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,8 +1023,7 @@ def date_found():
temp = temp.replace(tzinfo=None)
if not hasYear:
temp = temp.replace(year=extractedDate.year)
print(gettz(temp.tzname()))
print(extractedDate.tzname(), temp.tzname())

if extractedDate < temp:
extractedDate = extractedDate.replace(year=int(currentYear),
month=int(
Expand Down

0 comments on commit 1f17d1f

Please sign in to comment.