mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -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):
|
||||
import builtins
|
||||
from functools import reduce
|
||||
xrange = range
|
||||
else:
|
||||
import __builtin__ as builtins
|
||||
|
Loading…
x
Reference in New Issue
Block a user