tsgates/pylookup — Issue #10: Support for running under python2
Author: holmboe
Created: 2011-10-18 15:13:10+00:00
State: open

diff --git a/pylookup.py b/pylookup.py
index bb5c8fb..ddf7735 100755
--- a/pylookup.py
+++ b/pylookup.py
@@ -19,7 +19,7 @@ import formatter
from os.path import join, dirname, exists, abspath, expanduser
from contextlib import closing

-if sys.version_info.major == 3:
+if sys.version_info[0] == 3:
import html.parser as htmllib
import urllib.parse as urlparse
import urllib.request as urllib