Changeset 391 for python/trunk/Tools/scripts/findnocoding.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Tools/scripts/findnocoding.py
r2 r391 33 33 34 34 35 decl_re = re.compile(r "coding[=:]\s*([-\w.]+)")35 decl_re = re.compile(r'^[ \t\f]*#.*coding[:=][ \t]*([-\w.]+)') 36 36 37 37 def get_declaration(line): 38 match = decl_re. search(line)38 match = decl_re.match(line) 39 39 if match: 40 40 return match.group(1) 41 return ''41 return b'' 42 42 43 43 def has_correct_encoding(text, codec):
Note:
See TracChangeset
for help on using the changeset viewer.