mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
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):
|
if sys.version_info >= (3, 0):
|
||||||
import builtins
|
import builtins
|
||||||
|
from functools import reduce
|
||||||
xrange = range
|
xrange = range
|
||||||
else:
|
else:
|
||||||
import __builtin__ as builtins
|
import __builtin__ as builtins
|
||||||
|
Loading…
x
Reference in New Issue
Block a user