mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
26 lines
314 B
Python
26 lines
314 B
Python
import sys
|
|
|
|
#Container inheriting from builtin
|
|
class MyDict(dict):
|
|
pass
|
|
|
|
class NotMyDict(object):
|
|
|
|
def f(self):
|
|
super(MyDict, self).f()
|
|
|
|
#Splitting
|
|
PY2 = sys.version_info[0] == 2
|
|
|
|
if PY2:
|
|
pass
|
|
|
|
|
|
class InSplit(MyDict):
|
|
|
|
def __init__(self):
|
|
super(InSplit, self).f()
|
|
|
|
if PY2:
|
|
pass
|