PythonUtil: Fix usage of reduce() for Python 3
Backport to 1.10.7; see #980
This commit is contained in:
parent
3c4f666509
commit
32143055bd
|
|
@ -44,6 +44,7 @@ from panda3d.core import ConfigVariableBool
|
|||
|
||||
if sys.version_info >= (3, 0):
|
||||
import builtins
|
||||
from functools import reduce
|
||||
xrange = range
|
||||
else:
|
||||
import __builtin__ as builtins
|
||||
|
|
|
|||
Loading…
Reference in New Issue