Skip to content

Commit 15a8ef2

Browse files
committed
Replaced six.with_metaclass with six.add_metaclass decorator
See: #2
1 parent ce9cf4a commit 15a8ef2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

icon_font_to_png/icon_font_downloader.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
import os
44
from abc import ABCMeta, abstractmethod
55

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

9-
if PY2:
9+
if six.PY2:
1010
from urllib import urlretrieve
11-
elif PY3:
11+
elif six.PY3:
1212
from urllib.request import urlretrieve
1313

1414

15-
class IconFontDownloader(object, with_metaclass(ABCMeta)):
15+
@six.add_metaclass(ABCMeta)
16+
class IconFontDownloader(object):
1617
"""Abstract class for downloading icon font CSS and TTF files"""
1718
css_path = None
1819
ttf_path = None

0 commit comments

Comments
 (0)