1.1 --- a/lib/__builtins__/span.py Fri Dec 16 16:48:15 2016 +0100
1.2 +++ b/lib/__builtins__/span.py Fri Dec 16 18:07:58 2016 +0100
1.3 @@ -19,8 +19,6 @@
1.4 this program. If not, see <http://www.gnu.org/licenses/>.
1.5 """
1.6
1.7 -from __builtins__.sequence import _max, _min
1.8 -
1.9 class slice:
1.10
1.11 "Implementation of slice."
1.12 @@ -113,4 +111,22 @@
1.13
1.14 return list(xrange(start_or_end, end, step))
1.15
1.16 +def _max(x, y):
1.17 +
1.18 + "Return the maximum of 'x' and 'y'."
1.19 +
1.20 + if x >= y:
1.21 + return x
1.22 + else:
1.23 + return y
1.24 +
1.25 +def _min(x, y):
1.26 +
1.27 + "Return the minimum of 'x' and 'y'."
1.28 +
1.29 + if x <= y:
1.30 + return x
1.31 + else:
1.32 + return y
1.33 +
1.34 # vim: tabstop=4 expandtab shiftwidth=4