1
0
forked from VimPlug/jedi

moved user_stmt up in api

This commit is contained in:
Dave Halter
2014-01-15 17:35:40 +01:00
parent 059b1e1353
commit 134cd234de
2 changed files with 16 additions and 16 deletions

View File

@@ -123,9 +123,8 @@ def source_to_unicode(source, encoding=None):
def detect_encoding():
"""
For the implementation of encoding definitions in Python, look at:
http://www.python.org/dev/peps/pep-0263/
http://docs.python.org/2/reference/lexical_analysis.html#encoding-\
declarations
- http://www.python.org/dev/peps/pep-0263/
- http://docs.python.org/2/reference/lexical_analysis.html#encoding-declarations
"""
byte_mark = literal_eval(r"b'\xef\xbb\xbf'")
if source.startswith(byte_mark):