1.1 --- a/lib/__builtins__/buffer.py Mon Mar 06 22:29:36 2017 +0100
1.2 +++ b/lib/__builtins__/buffer.py Tue Mar 07 17:13:46 2017 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Buffer object.
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 @@ -34,7 +34,7 @@
1.13 elif isinstance(size, int):
1.14 n = size
1.15 else:
1.16 - raise TypeError(size)
1.17 + raise ValueError(size)
1.18
1.19 self.__data__ = list_init(n)
1.20
2.1 --- a/lib/__builtins__/tuple.py Mon Mar 06 22:29:36 2017 +0100
2.2 +++ b/lib/__builtins__/tuple.py Tue Mar 07 17:13:46 2017 +0100
2.3 @@ -3,7 +3,7 @@
2.4 """
2.5 Tuple objects.
2.6
2.7 -Copyright (C) 2015, 2016 Paul Boddie <paul@boddie.org.uk>
2.8 +Copyright (C) 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
2.9
2.10 This program is free software; you can redistribute it and/or modify it under
2.11 the terms of the GNU General Public License as published by the Free Software
2.12 @@ -103,6 +103,6 @@
2.13
2.14 "Set at the normalised (positive) 'index' the given 'value'."
2.15
2.16 - raise TypeError(self)
2.17 + raise TypeError
2.18
2.19 # vim: tabstop=4 expandtab shiftwidth=4
3.1 --- a/translator.py Mon Mar 06 22:29:36 2017 +0100
3.2 +++ b/translator.py Tue Mar 07 17:13:46 2017 +0100
3.3 @@ -1115,7 +1115,7 @@
3.4 # Complete the array with null values, permitting tests for a complete
3.5 # set of arguments.
3.6
3.7 - args += [None] * (not parameters and len(n.args) or parameters and len(parameters) or 0)
3.8 + args += [None] * (parameters is None and len(n.args) or parameters is not None and len(parameters) or 0)
3.9 kwcodes = []
3.10 kwargs = []
3.11