Skip to content

Commit

Permalink
Fix PEP8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Clément Bonnet committed Oct 7, 2015
1 parent 0738203 commit d33c9af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jinja2cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def as_dict(self):
except ImportError:
pass


# querystring - querystring parsing
def _parse_qs(data):
""" Extend urlparse to allow objects in dot syntax.
Expand Down Expand Up @@ -211,7 +212,7 @@ def cli(opts, args):
if ext in ('yml', 'yaml'):
raise InvalidDataFormat('%s: install pyyaml to fix' % ext)
if ext in ('xml'):
raise InvalidDataFormat('%s: install xmltodict to fix' % ext)
raise InvalidDataFormat('%s: install xmltodict' % ext)
raise InvalidDataFormat(ext)
data = open(path).read()

Expand Down Expand Up @@ -301,7 +302,7 @@ def main():
if opts.format in ('yml', 'yaml'):
raise InvalidDataFormat('%s: install pyyaml to fix' % opts.format)
if opts.format in ('xml'):
raise InvalidDataFormat('%s: install xmltodict to fix' % opts.format)
raise InvalidDataFormat('%s: install xmltodict' % opts.format)
raise InvalidDataFormat(opts.format)

cli(opts, args)
Expand Down

0 comments on commit d33c9af

Please sign in to comment.