mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -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)
|
||||
|
||||
import __builtin__
|
||||
if hasattr(__builtin__, 'enumerate'):
|
||||
print 'enumerate is already present in __builtin__'
|
||||
else:
|
||||
if not hasattr(__builtin__, 'enumerate'):
|
||||
__builtin__.enumerate = enumerate
|
||||
|
||||
def unique(L1, L2):
|
||||
|
Loading…
x
Reference in New Issue
Block a user