Miserlou / django-easy-timezones

Easy timezones for Django based on GeoIP
http://gun.io/blog/django-easy-timezones/
Apache License 2.0
203 stars 44 forks source link

Syntax error, Dj1.9 Python 3.4 #21

Closed khlumzeemee closed 8 years ago

khlumzeemee commented 8 years ago

Hi I get the below error when I start my application

from .utils import get_ip_address_from_request, is_valid_ip, is_local_ip                                                           
  File "/home/cabox/Envs/myproject/lib/python3.4/site-packages/easy_timezones/utils.py", line 13                                         
    except ValueError, e:                                                                                                              
                     ^                                                                                                                 
SyntaxError: invalid syntax
Miserlou commented 8 years ago

Ah, yes, that's a clear p3 incompatibility. Good catch.

Miserlou commented 8 years ago

fixed

khlumzeemee commented 8 years ago

Thanks for the quick fix, I'll be testing it soon! :)