Skip to content

Commit

Permalink
fix: remove builtins import statement
Browse files Browse the repository at this point in the history
Issue Close #47
  • Loading branch information
cesarcoatl committed Sep 25, 2021
1 parent 2acc3c0 commit 3c62913
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/java/lang/__init__.py
Expand Up @@ -20,7 +20,6 @@
import __builtin__ as builtins
except ImportError:
import builtins
from builtins import Exception as PyException


class Object(object):
Expand Down Expand Up @@ -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.
"""
Expand All @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion src/system/__version__.py
Expand Up @@ -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"
Expand Down

0 comments on commit 3c62913

Please sign in to comment.