File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ def run(arguments):
153153# Isolated for use in wrapper scripts
154154def download_icon_font (icon_font , directory ):
155155 try :
156- return AVAILABLE_ICON_FONTS [icon_font ](directory )
156+ return AVAILABLE_ICON_FONTS [icon_font ][ 'downloader' ] (directory )
157157 except KeyError :
158158 raise Exception ("We don't support downloading font '{name}'" .format (
159159 name = icon_font )
Original file line number Diff line number Diff line change @@ -116,6 +116,12 @@ def get_latest_version_number(self):
116116
117117# List of implemented icon font downloader classes
118118AVAILABLE_ICON_FONTS = {
119- 'font-awesome' : FontAwesomeDownloader ,
120- 'octicons' : OcticonsDownloader
119+ 'font-awesome' : {
120+ 'name' : 'Font Awesome' ,
121+ 'downloader' : FontAwesomeDownloader ,
122+ },
123+ 'octicons' : {
124+ 'name' : 'Octicons' ,
125+ 'downloader' : OcticonsDownloader ,
126+ },
121127}
Original file line number Diff line number Diff line change 22pytest
33tox
44twine
5- pypandoc
5+ pypandoc
6+ coverage
You can’t perform that action at this time.
0 commit comments