1.1 --- a/lib/__builtins__/str.py Fri Dec 09 00:09:01 2016 +0100
1.2 +++ b/lib/__builtins__/str.py Fri Dec 09 16:22:37 2016 +0100
1.3 @@ -68,7 +68,7 @@
1.4
1.5 "Return a string combining this string with 'other'."
1.6
1.7 - return self._binary_op(native._str_add, other)
1.8 + return self._binary_op(native.str_add, other)
1.9
1.10 __add__ = __radd__ = __iadd__
1.11
1.12 @@ -81,13 +81,13 @@
1.13
1.14 "Return whether this string is less than 'other'."
1.15
1.16 - return self._binary_op(native._str_lt, other)
1.17 + return self._binary_op(native.str_lt, other)
1.18
1.19 def __gt__(self, other):
1.20
1.21 "Return whether this string is greater than 'other'."
1.22
1.23 - return self._binary_op(native._str_gt, other)
1.24 + return self._binary_op(native.str_gt, other)
1.25
1.26 def __le__(self, other):
1.27
1.28 @@ -105,7 +105,7 @@
1.29
1.30 "Return whether this string is equal to 'other'."
1.31
1.32 - return self._binary_op(native._str_eq, other)
1.33 + return self._binary_op(native.str_eq, other)
1.34
1.35 def __ne__(self, other):
1.36
1.37 @@ -117,7 +117,7 @@
1.38
1.39 "Return the length of this string."
1.40
1.41 - return native._str_len(self.__data__)
1.42 + return native.str_len(self.__data__)
1.43
1.44 def __str__(self):
1.45
1.46 @@ -134,7 +134,7 @@
1.47 return str(b)
1.48
1.49 def __bool__(self):
1.50 - return native._str_nonempty(self.__data__)
1.51 + return native.str_nonempty(self.__data__)
1.52
1.53 def endswith(self, s): pass
1.54 def find(self, sub, start=None, end=None): pass
1.55 @@ -182,7 +182,7 @@
1.56 "Return the item at the normalised (positive) 'index'."
1.57
1.58 self._check_index(index)
1.59 - return native._str_substr(self.__data__, index, 1)
1.60 + return native.str_substr(self.__data__, index, 1)
1.61
1.62 class string(basestring):
1.63 pass