Skip to content

Commit

Permalink
fix pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
MinekPo1 committed Mar 5, 2022
1 parent c1201f4 commit d8e0233
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions autopep8.py
Original file line number Diff line number Diff line change
Expand Up @@ -1661,9 +1661,9 @@ def get_item(items, index, default=None):
return default


def reindent(source, indent_size,leave_tabs = False):
def reindent(source, indent_size, leave_tabs=False):
"""Reindent all lines."""
reindenter = Reindenter(source,leave_tabs)
reindenter = Reindenter(source, leave_tabs)
return reindenter.run(indent_size)


Expand Down Expand Up @@ -3696,8 +3696,13 @@ def apply_global_fixes(source, options, where='global', filename='',
for code in ['E101', 'E111']):
source = reindent(source,
indent_size=options.indent_size,
leave_tabs=not(code_match('W191',select=options.select,ignore=options.ignore))
)
leave_tabs=not(
code_match(
'W191',
select=options.select,
ignore=options.ignore)
)
)

for (code, function) in global_fixes():
if code.upper() in SELECTED_GLOBAL_FIXED_METHOD_CODES \
Expand Down

0 comments on commit d8e0233

Please sign in to comment.