mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
remove enumerate warning
This commit is contained in:
parent
b82b8ea001
commit
316be45a48
@ -34,9 +34,7 @@ def enumerate(L):
|
|||||||
return zip(xrange(len(L)), L)
|
return zip(xrange(len(L)), L)
|
||||||
|
|
||||||
import __builtin__
|
import __builtin__
|
||||||
if hasattr(__builtin__, 'enumerate'):
|
if not hasattr(__builtin__, 'enumerate'):
|
||||||
print 'enumerate is already present in __builtin__'
|
|
||||||
else:
|
|
||||||
__builtin__.enumerate = enumerate
|
__builtin__.enumerate = enumerate
|
||||||
|
|
||||||
def unique(L1, L2):
|
def unique(L1, L2):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user