Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pvlib/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(self, latitude, longitude, tz='UTC', altitude=0,
self.latitude = latitude
self.longitude = longitude

if isinstance(tz, str):
if isinstance(tz, basestring):
self.tz = tz
self.pytz = pytz.timezone(tz)
elif isinstance(tz, datetime.tzinfo):
Expand Down
2 changes: 1 addition & 1 deletion pvlib/test/test_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_location_all():


@pytest.mark.parametrize('tz', [
aztz, 'America/Phoenix', -7, -7.0,
aztz, 'America/Phoenix', -7, -7.0, u'Etc/GMT+7',
])
def test_location_tz(tz):
Location(32.2, -111, tz)
Expand Down