Skip to content

Commit dbcf9ad

Browse files
committed
Added .checkignore for QuantifiedCode
1 parent 943d53a commit dbcf9ad

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.checkignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore setup.py
2+
setup.py

icon_font_to_png/icon_font_downloader.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
from abc import ABCMeta, abstractmethod
55

66
import requests
7-
from six import with_metaclass, PY3
7+
from six import with_metaclass, PY2, PY3
88

9-
if PY3:
10-
from urllib.request import urlretrieve
11-
else:
9+
if PY2:
1210
from urllib import urlretrieve
11+
elif PY3:
12+
from urllib.request import urlretrieve
1313

1414

1515
class IconFontDownloader(with_metaclass(ABCMeta)):

0 commit comments

Comments
 (0)