From 3dc3ebf262008ebec4589efbb9185f2b850e5bbf Mon Sep 17 00:00:00 2001 From: M Clark Date: Thu, 17 Dec 2015 11:26:45 +0800 Subject: [PATCH] Update utils.py --- pycrs/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pycrs/utils.py b/pycrs/utils.py index b6a13c2..4cd4290 100644 --- a/pycrs/utils.py +++ b/pycrs/utils.py @@ -2,7 +2,10 @@ Misc utility functions related to crs formats and online services. """ -import urllib2 +try: + import urllib.request as urllib2 +except ImportError: + import urllib2 import re def build_crs_table(savepath):