We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14b0211 commit aec9cf0Copy full SHA for aec9cf0
Lib/test/test_tokenize.py
@@ -3192,9 +3192,7 @@ def text_normalize(string):
3192
This method is used by the other utility functions so that any
3193
string to write or to match against can be freely indented.
3194
"""
3195
- def normalize_spaces(text):
3196
- return re.sub(r'\s+', ' ', text).strip()
3197
- return normalize_spaces(dedent(string)).strip()
+ return re.sub(r'\s+', ' ', string).strip()
3198
3199
def set_source(self, content):
3200
with open(self.filename, 'w') as fp:
0 commit comments