Skip to content

Commit

Permalink
Remove pytz, update requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikos Vasileiou committed Nov 6, 2023
1 parent c272bc3 commit 62b9470
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 17 deletions.
5 changes: 2 additions & 3 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
asttokens>=2.0.4
click
pyseeyou==1.0.0
pytz
requests==2.22.0
pyseeyou==1.0.2
requests==2.*
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
"Operating System :: OS Independent",
],
url="https://github.com/transifex/transifex-python",
install_requires=["pyseeyou", "pytz", "requests", "click", "asttokens"],
install_requires=["pyseeyou", "requests", "click", "asttokens"],
)
10 changes: 0 additions & 10 deletions transifex/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from datetime import datetime
from hashlib import md5

import pytz


def generate_key(string=None, context=None):
"""Return a unique key based on the given source string and context.
Expand Down Expand Up @@ -66,14 +64,6 @@ def escape_plural(plural):
).hexdigest()


def now():
"""Return the current datetime, as a UTC-aware object.
:rtype: datetime
"""
return datetime.utcnow().replace(tzinfo=pytz.utc) # pragma no cover


def import_to_python(import_str):
"""Given a string 'a.b.c' return object c from a.b module.
Expand Down
3 changes: 0 additions & 3 deletions transifex/native/cache.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from transifex.common.utils import now


class AbstractCache(object):
"""
An interface for classes that cache translations.
Expand Down

0 comments on commit 62b9470

Please sign in to comment.