summaryrefslogtreecommitdiffstats
path: root/lib/kross/python/scripts/RestrictedPython/Guards.py
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2023-01-22 02:02:13 +0100
committerSlávek Banko <slavek.banko@axis.cz>2023-01-22 02:02:13 +0100
commit86480e58eafc1fa3486e03155ed34e02b4595a24 (patch)
tree0e8f64c4003ea558e946b7a3347688904b451635 /lib/kross/python/scripts/RestrictedPython/Guards.py
parent135d005014a1e85295af4e379f026a361537ae5f (diff)
downloadkoffice-86480e58.tar.gz
koffice-86480e58.zip
Drop python2 support in scripts.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'lib/kross/python/scripts/RestrictedPython/Guards.py')
-rw-r--r--lib/kross/python/scripts/RestrictedPython/Guards.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kross/python/scripts/RestrictedPython/Guards.py b/lib/kross/python/scripts/RestrictedPython/Guards.py
index 4fbdcad1c..2338518fd 100644
--- a/lib/kross/python/scripts/RestrictedPython/Guards.py
+++ b/lib/kross/python/scripts/RestrictedPython/Guards.py
@@ -93,7 +93,7 @@ def _write_wrapper():
try:
f = getattr(self.ob, secattr)
except AttributeError:
- raise TypeError, error_msg
+ raise TypeError(error_msg)
f(*args)
return handler
class Wrapper: