Skip to content

Commit 62b9470

Browse files
author
Nikos Vasileiou
committed
Remove pytz, update requests
1 parent c272bc3 commit 62b9470

4 files changed

Lines changed: 3 additions & 17 deletions

File tree

requirements/base.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
asttokens>=2.0.4
22
click
3-
pyseeyou==1.0.0
4-
pytz
5-
requests==2.22.0
3+
pyseeyou==1.0.2
4+
requests==2.*

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
"Operating System :: OS Independent",
2222
],
2323
url="https://github.com/transifex/transifex-python",
24-
install_requires=["pyseeyou", "pytz", "requests", "click", "asttokens"],
24+
install_requires=["pyseeyou", "requests", "click", "asttokens"],
2525
)

transifex/common/utils.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
from datetime import datetime
44
from hashlib import md5
55

6-
import pytz
7-
86

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

6866

69-
def now():
70-
"""Return the current datetime, as a UTC-aware object.
71-
72-
:rtype: datetime
73-
"""
74-
return datetime.utcnow().replace(tzinfo=pytz.utc) # pragma no cover
75-
76-
7767
def import_to_python(import_str):
7868
"""Given a string 'a.b.c' return object c from a.b module.
7969

transifex/native/cache.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
from transifex.common.utils import now
2-
3-
41
class AbstractCache(object):
52
"""
63
An interface for classes that cache translations.

0 commit comments

Comments
 (0)