mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
These get to live next to the existing library and query tests, and are run as part of both the Python 2 and Python 3 language tests.
10 lines
318 B
Python
10 lines
318 B
Python
# -*- coding: latin-1 -*-
|
|
|
|
class C(object):
|
|
|
|
def m(self):
|
|
#According to https://docs.python.org/2/library/ast.html#ast.AST.col_offset
|
|
#all column offsets are utf-8.
|
|
#That is incorrect as the compiler passes latin-1 encoded files through untouched.
|
|
f(unicode=u'£££'.encode('utf-8'))
|