GothenburgBitFactory / bugwarrior

Pull github, bitbucket, and trac issues into taskwarrior
http://pypi.python.org/pypi/bugwarrior
GNU General Public License v3.0
732 stars 209 forks source link

Replace LOCAL_TIMEZONE constant with empty string #969

Closed ryneeverett closed 1 year ago

ryneeverett commented 1 year ago

The constant is only used in the VersionOne service and an empty string serves just as well. If an empty string were passed in this parameter previously you'd get an exception, so we aren't masking any useful behavior:

>>> pytz.timezone('')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "python3.10/site-packages/pytz/__init__.py", line 188, in timezone
    raise UnknownTimeZoneError(zone)
pytz.exceptions.UnknownTimeZoneError: ''