Lichen

Change of lib/__builtins__/types.py

356:8327049267bf
lib/__builtins__/types.py
     1.1 --- a/lib/__builtins__/types.py	Fri Dec 09 16:26:50 2016 +0100
     1.2 +++ b/lib/__builtins__/types.py	Fri Dec 09 17:27:30 2016 +0100
     1.3 @@ -19,20 +19,20 @@
     1.4  this program.  If not, see <http://www.gnu.org/licenses/>.
     1.5  """
     1.6  
     1.7 -import native
     1.8 +from native import isinstance as _isinstance
     1.9  
    1.10  def check_int(i):
    1.11  
    1.12      "Check the given int 'i'."
    1.13  
    1.14 -    if not native.isinstance(i, int):
    1.15 +    if not _isinstance(i, int):
    1.16          raise ValueError(i)
    1.17  
    1.18  def check_string(s):
    1.19  
    1.20      "Check the given string 's'."
    1.21  
    1.22 -    if not native.isinstance(s, string):
    1.23 +    if not _isinstance(s, string):
    1.24          raise ValueError(s)
    1.25  
    1.26  # vim: tabstop=4 expandtab shiftwidth=4