#N/A: Fix formatting (#1092)
* Fixed corrector.py format string * Fixed types.py format string * Fixed tests/rules/test_fix_file.py formatting * Removed trailing whitespace * Fixed UnicodeEncodeError in python 2.7
This commit is contained in:
@@ -71,7 +71,7 @@ def organize_commands(corrected_commands):
|
||||
without_duplicates,
|
||||
key=lambda corrected_command: corrected_command.priority)
|
||||
|
||||
logs.debug('Corrected commands: '.format(
|
||||
logs.debug(u'Corrected commands: {}'.format(
|
||||
', '.join(u'{}'.format(cmd) for cmd in [first_command] + sorted_commands)))
|
||||
|
||||
for command in sorted_commands:
|
||||
|
||||
+1
-1
@@ -122,7 +122,7 @@ class Rule(object):
|
||||
def __repr__(self):
|
||||
return 'Rule(name={}, match={}, get_new_command={}, ' \
|
||||
'enabled_by_default={}, side_effect={}, ' \
|
||||
'priority={}, requires_output)'.format(
|
||||
'priority={}, requires_output={})'.format(
|
||||
self.name, self.match, self.get_new_command,
|
||||
self.enabled_by_default, self.side_effect,
|
||||
self.priority, self.requires_output)
|
||||
|
||||
Reference in New Issue
Block a user