Skip to content

Commit

Permalink
Updating pytz imports for GAE.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhermes committed Dec 30, 2014
1 parent 72fe5ea commit f7f05bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion application/vendor/gcloud/datastore/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import datetime

from google.protobuf.internal.type_checkers import Int64ValueChecker
import pytz
from pytz.gae import pytz # Originally import pytz.
import six

from gcloud.datastore.entity import Entity
Expand Down
8 changes: 4 additions & 4 deletions application/vendor/gcloud/datastore/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def _callFUT(self, val):
def test_datetime_naive(self):
import calendar
import datetime
import pytz
from pytz.gae import pytz # Originally import pytz.

naive = datetime.datetime(2014, 9, 16, 10, 19, 32, 4375) # No zone.
utc = datetime.datetime(2014, 9, 16, 10, 19, 32, 4375, pytz.utc)
Expand All @@ -140,7 +140,7 @@ def test_datetime_naive(self):
def test_datetime_w_zone(self):
import calendar
import datetime
import pytz
from pytz.gae import pytz # Originally import pytz.

utc = datetime.datetime(2014, 9, 16, 10, 19, 32, 4375, pytz.utc)
name, value = self._callFUT(utc)
Expand Down Expand Up @@ -238,7 +238,7 @@ def _makePB(self, attr_name, value):
def test_datetime(self):
import calendar
import datetime
import pytz
from pytz.gae import pytz # Originally import pytz.

utc = datetime.datetime(2014, 9, 16, 10, 19, 32, 4375, pytz.utc)
micros = (calendar.timegm(utc.timetuple()) * 1000000) + 4375
Expand Down Expand Up @@ -341,7 +341,7 @@ def _makePB(self):
def test_datetime(self):
import calendar
import datetime
import pytz
from pytz.gae import pytz # Originally import pytz.

pb = self._makePB()
utc = datetime.datetime(2014, 9, 16, 10, 19, 32, 4375, pytz.utc)
Expand Down

0 comments on commit f7f05bb

Please sign in to comment.