diff --git a/AUTHORS b/AUTHORS index e59a7e3..e5b61cf 100644 --- a/AUTHORS +++ b/AUTHORS @@ -44,3 +44,4 @@ * han semaj * kirbyfan64 * Brendan Curran-Johnson +* Ivan Kozik diff --git a/eg/lxml/parse-tumblr.hy b/eg/lxml/parse-tumblr.hy index 3f61719..6b46ecb 100644 --- a/eg/lxml/parse-tumblr.hy +++ b/eg/lxml/parse-tumblr.hy @@ -2,10 +2,13 @@ ;;; Copyright (c) Paul R. Tagliamonte, 2013, MIT/Expat license. -(import [urllib2 [urlopen]] - [lxml [etree]] +(import [lxml [etree]] [sys [argv]]) +(try + (import [urllib.request [urlopen]]) + (catch [ImportError] + (import [urllib2 [urlopen]]))) (defn get-rss-feed-name [tumblr] (kwapply (.format "http://{tumblr}.tumblr.com/rss") {"tumblr" tumblr})) diff --git a/setup.py b/setup.py index 1808022..40bb4e0 100755 --- a/setup.py +++ b/setup.py @@ -88,6 +88,7 @@ setup( "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", + "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Code Generators", "Topic :: Software Development :: Compilers", "Topic :: Software Development :: Libraries",