Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Malmgren committed Jan 30, 2015
1 parent 708d47f commit 55f63fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion textract/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def __call__(self, parser, namespace, values, option_string=None):
) % locals())
setattr(namespace, key, val)


# This function is necessary to enable autodocumentation of the script
# output
def get_parser():
Expand Down Expand Up @@ -56,7 +57,10 @@ def get_parser():
)
parser.add_argument(
'-O', '--option', type=str, action=AddToNamespaceAction,
help='add arbitrary options to various parsers of the form KEYWORD=VALUE',
help=(
'add arbitrary options to various parsers of the form '
'KEYWORD=VALUE'
),
)
parser.add_argument(
'-v', '--version', action='version', version='%(prog)s '+VERSION,
Expand Down
2 changes: 1 addition & 1 deletion textract/parsers/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Parser(ShellParser):

def extract(self, filename, **kwargs):

#if language given as argument, specify language for tesseract to use
# if language given as argument, specify language for tesseract to use
if 'language' in kwargs:
lang = '-l %s' % kwargs['language']
else:
Expand Down

0 comments on commit 55f63fc

Please sign in to comment.