Browse Source

PythonUtil: Fix usage of reduce() for Python 3

Backport to 1.10.7; see #980
rdb 5 years ago
parent
commit
32143055bd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/showbase/PythonUtil.py

+ 1 - 0
direct/src/showbase/PythonUtil.py

@@ -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