Skip to content

Commit 6ca4f32

Browse files
qhelp: move examples to subfolder
1 parent 804b9ef commit 6ca4f32

File tree

6 files changed

+2
-2
lines changed

6 files changed

+2
-2
lines changed

python/ql/src/Classes/CallsToInitDel/MissingCallToInit.py renamed to python/ql/src/Classes/CallsToInitDel/examples/MissingCallToInit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ def __init__(self):
1010
Vehicle.__init__(self)
1111
self.car_init()
1212

13-
#Car.__init__ is missed out.
13+
# BAD: Car.__init__ is not called.
1414
class SportsCar(Car, Vehicle):
1515

1616
def __init__(self):
1717
Vehicle.__init__(self)
1818
self.sports_car_init()
1919

20-
#Fix SportsCar by calling Car.__init__
20+
# GOOD: Car.__init__ is called correctly.
2121
class FixedSportsCar(Car, Vehicle):
2222

2323
def __init__(self):

0 commit comments

Comments
 (0)