mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
21 lines
298 B
Python
21 lines
298 B
Python
|
|
#Only works for Python2
|
|
|
|
class OldStyle1:
|
|
|
|
__slots__ = [ 'a', 'b' ]
|
|
|
|
def __init__(self, a, b):
|
|
self.a = a
|
|
self.b = b
|
|
|
|
class OldStyle2:
|
|
|
|
def __init__(self, x):
|
|
super().__init__(x)
|
|
|
|
class NewStyle1(object):
|
|
|
|
def __init__(self, y):
|
|
super().__init__(y)
|