Skip to content

Commit 943d53a

Browse files
committed
Minor improvements
1 parent c722303 commit 943d53a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

icon_font_to_png/icon_font.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111

1212
class IconFont:
13+
"""Base class that represents web icon font"""
1314
def __init__(self, css_file, ttf_file, keep_prefix=False):
1415
"""
1516
:param css_file: path to icon font CSS file

icon_font_to_png/icon_font_downloader.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ class IconFontDownloader(with_metaclass(ABCMeta)):
1818
ttf_path = None
1919

2020
@property
21-
@abstractmethod
2221
def css_url(self):
2322
"""Icon font CSS file URL"""
23+
raise NotImplementedError
2424

2525
@property
26-
@abstractmethod
2726
def ttf_url(self):
2827
"""Icon font TTF file URL"""
28+
raise NotImplementedError
2929

3030
def __init__(self, directory=None):
3131
"""
@@ -62,6 +62,7 @@ def _get_latest_tag_from_github(repo_api_url):
6262
@abstractmethod
6363
def get_latest_version_number(self):
6464
"""Get latest icon font version number"""
65+
return
6566

6667
def download_css(self, directory):
6768
"""Downloads icon font CSS file and returns its path"""

0 commit comments

Comments
 (0)