Skip to content

Commit

Permalink
Explicitly inherit from object
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelad committed Feb 13, 2016
1 parent 885f606 commit 433e374
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions icon_font_to_png/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@


def run(arguments):
"""Main function for command line usage"""
parser = argparse.ArgumentParser(
description="Exports font icons as PNG images."
)
Expand Down Expand Up @@ -152,6 +153,7 @@ def run(arguments):

# Isolated for use in wrapper scripts
def download_icon_font(icon_font, directory):
"""Download given (implemented) icon font into passed directory"""
try:
return AVAILABLE_ICON_FONTS[icon_font]['downloader'](directory)
except KeyError: # pragma: no cover
Expand Down
2 changes: 1 addition & 1 deletion icon_font_to_png/icon_font.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from PIL import Image, ImageFont, ImageDraw


class IconFont:
class IconFont(object):
"""Base class that represents web icon font"""
def __init__(self, css_file, ttf_file, keep_prefix=False):
"""
Expand Down
2 changes: 1 addition & 1 deletion icon_font_to_png/icon_font_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from urllib.request import urlretrieve


class IconFontDownloader(with_metaclass(ABCMeta)):
class IconFontDownloader(object, with_metaclass(ABCMeta)):
"""Abstract class for downloading icon font CSS and TTF files"""
css_path = None
ttf_path = None
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def run_tests(self):
url='https://github.com/Pythonity/icon-font-to-png',
download_url='https://github.com/Pythonity/icon-font-to-png/releases/latest',
bugtrack_url='https://github.com/Pythonity/icon-font-to-png/issues',
version='0.3.1',
version='0.3.2',
license='MIT License',
author='Pythonity',
author_email='[email protected]',
Expand Down

0 comments on commit 433e374

Please sign in to comment.