1.1 --- a/lib/__builtins__/__init__.py Thu Jan 12 23:29:39 2017 +0100
1.2 +++ b/lib/__builtins__/__init__.py Thu Jan 12 23:50:26 2017 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Simple built-in classes and functions.
1.6
1.7 -Copyright (C) 2015, 2016 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -19,22 +19,19 @@
1.13 this program. If not, see <http://www.gnu.org/licenses/>.
1.14 """
1.15
1.16 -from __builtins__.core import function, get_using, module, object, type, \
1.17 - BaseException, Exception, MemoryError, \
1.18 - OverflowError, TypeError, ZeroDivisionError, \
1.19 - UnboundMethodInvocation, Warning
1.20 +from __builtins__.core import (
1.21 + function, get_using, module, object, type,
1.22 + ArithmeticError, Exception, FloatingPointError, MemoryError, OverflowError,
1.23 + TypeError, UnboundMethodInvocation, ZeroDivisionError
1.24 + )
1.25
1.26 # Exceptions.
1.27
1.28 from __builtins__.exception import (
1.29 - ArithmeticError,
1.30 AssertionError,
1.31 AttributeError,
1.32 - DeprecationWarning,
1.33 EOFError,
1.34 EnvironmentError,
1.35 - FloatingPointError,
1.36 - FutureWarning,
1.37 IndentationError,
1.38 IndexError,
1.39 IOError,
1.40 @@ -42,12 +39,9 @@
1.41 KeyboardInterrupt,
1.42 NotImplementedError,
1.43 OSError,
1.44 - PendingDeprecationWarning,
1.45 RuntimeError,
1.46 - RuntimeWarning,
1.47 StopIteration,
1.48 SyntaxError,
1.49 - SyntaxWarning,
1.50 SystemError,
1.51 SystemExit,
1.52 TabError,
1.53 @@ -55,8 +49,6 @@
1.54 UnicodeEncodeError,
1.55 UnicodeError,
1.56 UnicodeTranslateError,
1.57 - UnicodeWarning,
1.58 - UserWarning,
1.59 ValueError
1.60 )
1.61