Skip to content

Commit 433e374

Browse files
committed
Explicitly inherit from object
1 parent 885f606 commit 433e374

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

icon_font_to_png/command_line.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88

99
def run(arguments):
10+
"""Main function for command line usage"""
1011
parser = argparse.ArgumentParser(
1112
description="Exports font icons as PNG images."
1213
)
@@ -152,6 +153,7 @@ def run(arguments):
152153

153154
# Isolated for use in wrapper scripts
154155
def download_icon_font(icon_font, directory):
156+
"""Download given (implemented) icon font into passed directory"""
155157
try:
156158
return AVAILABLE_ICON_FONTS[icon_font]['downloader'](directory)
157159
except KeyError: # pragma: no cover

icon_font_to_png/icon_font.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from PIL import Image, ImageFont, ImageDraw
1010

1111

12-
class IconFont:
12+
class IconFont(object):
1313
"""Base class that represents web icon font"""
1414
def __init__(self, css_file, ttf_file, keep_prefix=False):
1515
"""

icon_font_to_png/icon_font_downloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from urllib.request import urlretrieve
1313

1414

15-
class IconFontDownloader(with_metaclass(ABCMeta)):
15+
class IconFontDownloader(object, with_metaclass(ABCMeta)):
1616
"""Abstract class for downloading icon font CSS and TTF files"""
1717
css_path = None
1818
ttf_path = None

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def run_tests(self):
4040
url='https://github.com/Pythonity/icon-font-to-png',
4141
download_url='https://github.com/Pythonity/icon-font-to-png/releases/latest',
4242
bugtrack_url='https://github.com/Pythonity/icon-font-to-png/issues',
43-
version='0.3.1',
43+
version='0.3.2',
4444
license='MIT License',
4545
author='Pythonity',
4646
author_email='pythonity@pythonity.com',

0 commit comments

Comments
 (0)