1.1 --- a/lib/__builtins__/types.py Sun Mar 26 18:03:40 2017 +0200
1.2 +++ b/lib/__builtins__/types.py Tue Mar 28 22:12:11 2017 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Common type validation functions.
1.6
1.7 -Copyright (C) 2016 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 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,13 +19,13 @@
1.13 this program. If not, see <http://www.gnu.org/licenses/>.
1.14 """
1.15
1.16 -from native import isinstance as _isinstance
1.17 +from native import isinstance as _isinstance, is_int
1.18
1.19 def check_int(i):
1.20
1.21 "Check the given int 'i'."
1.22
1.23 - if not _isinstance(i, int):
1.24 + if not is_int(i):
1.25 raise ValueError(i)
1.26
1.27 def check_string(s):