diff --git a/pymode/libs3/rope/base/fscommands.py b/pymode/libs3/rope/base/fscommands.py index 0ad79b53..ea1a061a 100644 --- a/pymode/libs3/rope/base/fscommands.py +++ b/pymode/libs3/rope/base/fscommands.py @@ -242,7 +242,7 @@ def read_str_coding(source): if not isinstance(source, str): source = source.decode("utf-8", "ignore") #TODO: change it to precompiled version - mex = re.search("\-\*\-\s+coding:\s+(.*?)\s+\-\*\-", source) + mex = re.search("\-\*\-\s+coding:\s*(.*?)\s+\-\*\-", source) if mex: return mex.group(1) return "utf-8"
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: