# HG changeset patch # User Paul Boddie # Date 1477765058 -7200 # Node ID b9ff845ba2cd4a3bd8fe1d440cc2d6fb91e15aff # Parent b682af24443c8d000bbacda35e4a87d17c04943d Removed superfluous import and comments. diff -r b682af24443c -r b9ff845ba2cd lib/operator/sequence.py --- a/lib/operator/sequence.py Sat Oct 29 20:17:14 2016 +0200 +++ b/lib/operator/sequence.py Sat Oct 29 20:17:38 2016 +0200 @@ -3,7 +3,7 @@ """ Operator support. -Copyright (C) 2010, 2013, 2015 Paul Boddie +Copyright (C) 2010, 2013, 2015, 2016 Paul Boddie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -19,14 +19,6 @@ this program. If not, see . """ -# Necessary import since the operator module gets imported very early during -# builtins initialisation. - -from __builtins__.span import slice - -# NOTE: The compiler should make it possible for the following functions to call -# NOTE: the generic operator implementations with no additional call overhead. - # Access and slicing functions. def getitem(a, b): @@ -35,8 +27,6 @@ def setitem(a, b, c): a.__setitem__(b, c) -# NOTE: Should be able to optimise temporary instance allocations for slices. - def getslice(a, b, c): return a.__getitem__(slice(b, c))