From 8443a87f5ce930f4bc608c4e5289e640e3cb860b Mon Sep 17 00:00:00 2001 From: alphapapa Date: Sun, 3 Apr 2016 21:38:17 -0500 Subject: [PATCH] Update readability.py --- readability/readability.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readability/readability.py b/readability/readability.py index de19a7c..d85e7f1 100755 --- a/readability/readability.py +++ b/readability/readability.py @@ -607,7 +607,7 @@ def main(): file = urllib.request.urlopen(request) else: import urllib2 - request = urllib2.request(options.url, None, headers) + request = urllib2.Request(options.url, None, headers) file = urllib2.urlopen(request) else: file = open(args[0], 'rt')