Skip to content

Commit

Permalink
fix broken tests, due to explicit usage of urllib only for remote themes
Browse files Browse the repository at this point in the history
  • Loading branch information
loechel committed Mar 3, 2015
1 parent 4cea882 commit f06f717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/diazo/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def expand_themes(rules_doc, parser=None, absolute_prefix=None,
url.startswith(('ftp://', 'http://', 'https://')):
raise ValueError("Supplied theme '%s', "
"but network access denied." % url)
if '://' in url:
if url.startswith(('ftp://', 'ftps://', 'http://', 'https://')):
theme = urlopen(url)
else:
theme = url
Expand Down

0 comments on commit f06f717

Please sign in to comment.