1.1 --- a/lib/__builtins__/__init__.py Sat Dec 10 14:02:44 2016 +0100
1.2 +++ b/lib/__builtins__/__init__.py Sat Dec 10 14:04:01 2016 +0100
1.3 @@ -35,14 +35,11 @@
1.4 EnvironmentError,
1.5 FloatingPointError,
1.6 FutureWarning,
1.7 - ImportError,
1.8 - ImportWarning,
1.9 IndentationError,
1.10 IndexError,
1.11 IOError,
1.12 KeyError,
1.13 KeyboardInterrupt,
1.14 - NameError,
1.15 NotImplementedError,
1.16 OSError,
1.17 PendingDeprecationWarning,
1.18 @@ -54,7 +51,6 @@
1.19 SystemError,
1.20 SystemExit,
1.21 TabError,
1.22 - UnboundLocalError,
1.23 UnicodeDecodeError,
1.24 UnicodeEncodeError,
1.25 UnicodeError,
2.1 --- a/lib/__builtins__/exception/__init__.py Sat Dec 10 14:02:44 2016 +0100
2.2 +++ b/lib/__builtins__/exception/__init__.py Sat Dec 10 14:04:01 2016 +0100
2.3 @@ -38,11 +38,7 @@
2.4 )
2.5
2.6 from __builtins__.exception.naming import (
2.7 - AttributeError,
2.8 - ImportError,
2.9 - ImportWarning,
2.10 - NameError,
2.11 - UnboundLocalError
2.12 + AttributeError
2.13 )
2.14
2.15 from __builtins__.exception.numeric import (
3.1 --- a/lib/__builtins__/exception/naming.py Sat Dec 10 14:02:44 2016 +0100
3.2 +++ b/lib/__builtins__/exception/naming.py Sat Dec 10 14:04:01 2016 +0100
3.3 @@ -3,7 +3,10 @@
3.4 """
3.5 Name-related exception objects.
3.6
3.7 -Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk>
3.8 +Errors regarding unrecognised names or import failures are not provided since
3.9 +these errors should occur during program compilation.
3.10 +
3.11 +Copyright (C) 2015, 2016 Paul Boddie <paul@boddie.org.uk>
3.12
3.13 This program is free software; you can redistribute it and/or modify it under
3.14 the terms of the GNU General Public License as published by the Free Software
3.15 @@ -19,10 +22,14 @@
3.16 this program. If not, see <http://www.gnu.org/licenses/>.
3.17 """
3.18
3.19 -class AttributeError(Exception): pass
3.20 -class ImportError(Exception): pass
3.21 -class ImportWarning(Warning): pass
3.22 -class NameError(Exception): pass
3.23 -class UnboundLocalError(Exception): pass
3.24 +class AttributeError(Exception):
3.25 +
3.26 + "An error indicating an invalid attribute for an object."
3.27 +
3.28 + def __init__(self, name):
3.29 +
3.30 + "Initialise the exception with the given 'name'."
3.31 +
3.32 + self.name = name
3.33
3.34 # vim: tabstop=4 expandtab shiftwidth=4