pull/271/head
Bill Wendling 7 years ago
parent 7521d4ba6f
commit dfc63f2323
  1. 2
      yapf/yapflib/format_decision_state.py
  2. 2
      yapf/yapflib/format_token.py

@ -534,7 +534,7 @@ class _ParenState(object):
state = _ParenState(self.indent, self.last_space)
state.closing_scope_indent = self.closing_scope_indent
state.split_before_closing_bracket = self.split_before_closing_bracket
self.num_line_splits = self.num_line_splits
state.num_line_splits = self.num_line_splits
return state
def __repr__(self):

@ -111,7 +111,7 @@ class FormatToken(object):
spaces: (int) The number of spaces to place before the token.
indent_level: (int) The indentation level.
"""
indent_char = "\t" if style.Get('USE_TABS') else ' '
indent_char = '\t' if style.Get('USE_TABS') else ' '
indent_before = (
indent_char * indent_level * style.Get('INDENT_WIDTH') + ' ' * spaces)

Loading…
Cancel
Save