PythonUtil: Fix usage of reduce() for Python 3

Backport to 1.10.7; see #980
This commit is contained in:
rdb 2020-08-04 11:08:51 +02:00
parent 3c4f666509
commit 32143055bd

View File

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