Lichen

Changeset

936:e5bbe2247087
3 months ago Paul Boddie raw files shortlog changelog graph Updated Unicode type details. trailing-data
lib/__builtins__/float.py (file)
     1.1 --- a/lib/__builtins__/float.py	Tue Jun 29 22:24:48 2021 +0200
     1.2 +++ b/lib/__builtins__/float.py	Tue Jun 29 22:40:43 2021 +0200
     1.3 @@ -3,7 +3,7 @@
     1.4  """
     1.5  Floating point number objects.
     1.6  
     1.7 -Copyright (C) 2015, 2016, 2018 Paul Boddie <paul@boddie.org.uk>
     1.8 +Copyright (C) 2015, 2016, 2018, 2021 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,7 +19,7 @@
    1.13  this program.  If not, see <http://www.gnu.org/licenses/>.
    1.14  """
    1.15  
    1.16 -from __builtins__.unicode import utf8string
    1.17 +from __builtins__.unicode import unicode
    1.18  from native import isinstance as _isinstance, \
    1.19                     int_float, is_int, \
    1.20                     float_add, float_div, float_eq, float_ge, float_gt, \
    1.21 @@ -194,7 +194,7 @@
    1.22  
    1.23          "Return a string representation."
    1.24  
    1.25 -        return utf8string(float_str(self))
    1.26 +        return unicode(float_str(self))
    1.27  
    1.28      __repr__ = __str__
    1.29