From 3c62913d967f5a76a71ca3e7f3068e87bad7344f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Rom=C3=A1n?= Date: Fri, 24 Sep 2021 17:28:18 -0700 Subject: [PATCH] fix: remove builtins import statement Issue Close #47 --- setup.py | 1 + src/java/lang/__init__.py | 6 +++--- src/system/__version__.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 2d92631..0faa55d 100644 --- a/setup.py +++ b/setup.py @@ -28,6 +28,7 @@ author_email=about["__author_email__"], license=about["__license__"], classifiers=[ + "Development Status :: 5 - Production/Stable", "Intended Audience :: Information Technology", "Intended Audience :: Manufacturing", "License :: OSI Approved :: MIT License", diff --git a/src/java/lang/__init__.py b/src/java/lang/__init__.py index a43778b..6884d6a 100644 --- a/src/java/lang/__init__.py +++ b/src/java/lang/__init__.py @@ -20,7 +20,6 @@ import __builtin__ as builtins except ImportError: import builtins -from builtins import Exception as PyException class Object(object): @@ -125,7 +124,7 @@ def wait(self, timeoutMillis=None, nanos=None): pass -class Throwable(Object, PyException): +class Throwable(Object, builtins.Exception): """The Throwable class is the superclass of all errors and exceptions in the Java language. """ @@ -141,8 +140,9 @@ def __init__(self, message=None, cause=None): permitted, and indicates that the cause is nonexistent or unknown.). """ - PyException.__init__(self, message) self._cause = cause + self.message = message + builtins.Exception.__init__(self, message) @property def cause(self): diff --git a/src/system/__version__.py b/src/system/__version__.py index ed0b88c..f19065f 100644 --- a/src/system/__version__.py +++ b/src/system/__version__.py @@ -6,7 +6,7 @@ __description__ = "Ignition Scripting API." __url__ = "https://github.com/thecesrom/Ignition" __version__ = "8.1.10" -__cycle__ = ".post4" +__cycle__ = ".post5" __build__ = "2021090812" __author__ = "César Román" __author_email__ = "cesar@thecesrom.dev"