WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 1.6% of users enabled 2FA.

Commit b4330998 authored by Stefan Marr's avatar Stefan Marr
Browse files

Adapted find_var for Python

- list.index(elem) raises a ValueError if elem is not in list
Signed-off-by: default avatarStefan Marr <git@stefan-marr.de>
parent 8e738a19
......@@ -130,19 +130,20 @@ class MethodGenerationContext(object):
def find_var(self, var, triplet):
# triplet: index, context, isArgument
if var in self._locals:
triplet[0] = self._locals.index(var)
return True
if triplet[0] == -1:
if var in self._arguments:
triplet[0] = self._arguments.index(var)
if triplet[0] == -1:
if not self._outer_genc:
return False
triplet[2] = True
return True
if self._outer_genc:
triplet[1] = triplet[1] + 1
return self._outer_genc.find_var(var, triplet)
triplet[2] = True
return True
return False
def has_field(self, field):
return self._holder_genc.has_field(field)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment