Browse Source

Fix pandac.PandaModules import error with Python 3 (thanks, tzaeru!)

rdb 10 years ago
parent
commit
1206d93813
1 changed files with 1 additions and 1 deletions
  1. 1 1
      makepanda/makepanda.py

+ 1 - 1
makepanda/makepanda.py

@@ -2648,7 +2648,7 @@ for module in panda_modules:
     panda_modules_code += """
     panda_modules_code += """
 try:
 try:
     from panda3d.%s import *
     from panda3d.%s import *
-except ImportError, err:
+except ImportError as err:
     if "No module named %s" not in str(err):
     if "No module named %s" not in str(err):
         raise""" % (module, module)
         raise""" % (module, module)