Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: abp/filters/sources.py

Issue 29968569: Issue 4014 - Publish python-abp on PyPI (Closed) Base URL: https://hg.adblockplus.org/python-abp/
Patch Set: Address comments on PS2, add README ToC Created Dec. 29, 2018, 1:29 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « README.md ('k') | setup.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: abp/filters/sources.py
===================================================================
--- a/abp/filters/sources.py
+++ b/abp/filters/sources.py
@@ -21,7 +21,8 @@
try:
from urllib2 import urlopen, HTTPError
-except ImportError: # The module was renamed in Python 3.
+except ImportError: # pragma: no py2 cover
+ # The module was renamed in Python 3
from urllib.request import urlopen
from urllib.error import HTTPError
« no previous file with comments | « README.md ('k') | setup.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld