8000
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 fd70ac2 commit 1e2d9a2Copy full SHA for 1e2d9a2
pymode/libs3/rope/base/fscommands.py
@@ -242,7 +242,7 @@ def read_str_coding(source):
242
if not isinstance(source, str):
243
source = source.decode("utf-8", "ignore")
244
#TODO: change it to precompiled version
245
- mex = re.search("\-\*\-\s+coding:\s+(.*?)\s+\-\*\-", source)
+ mex = re.search("\-\*\-\s+coding:\s*(.*?)\s+\-\*\-", source)
246
if mex:
247
return mex.group(1)
248
return "utf-8"
0 commit comments