Skip to content

Commit aec9cf0

Browse files
committed
Fix normalize function
1 parent 14b0211 commit aec9cf0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/test/test_tokenize.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3192,9 +3192,7 @@ def text_normalize(string):
31923192
This method is used by the other utility functions so that any
31933193
string to write or to match against can be freely indented.
31943194
"""
3195-
def normalize_spaces(text):
3196-
return re.sub(r'\s+', ' ', text).strip()
3197-
return normalize_spaces(dedent(string)).strip()
3195+
return re.sub(r'\s+', ' ', string).strip()
31983196

31993197
def set_source(self, content):
32003198
with open(self.filename, 'w') as fp:

0 commit comments

Comments
 (0)