Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3dc74c0

Browse files
committed
fix whitespace normalization before pushing.
2 parents db66310 + efc66f9 commit 3dc74c0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Lib/lib2to3/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ def write_file(self, new_text, filename, old_text, encoding):
7979
if self._append_suffix:
8080
filename += self._append_suffix
8181
if orig_filename != filename:
82-
output_dir = os.path.dirname(filename)
83-
if not os.path.isdir(output_dir):
84-
os.makedirs(output_dir)
85-
self.log_message('Writing converted %s to %s.', orig_filename,
86-
filename)
82+
output_dir = os.path.dirname(filename)
83+
if not os.path.isdir(output_dir):
84+
os.makedirs(output_dir)
85+
self.log_message('Writing converted %s to %s.', orig_filename,
86+
filename)
8787
if not self.nobackups:
8888
# Make backup
8989
backup = filename + ".bak"

0 commit comments

Comments
 (0)