diff --git a/direct/src/dist/commands.py b/direct/src/dist/commands.py index 42997c63f4..ba0d367254 100644 --- a/direct/src/dist/commands.py +++ b/direct/src/dist/commands.py @@ -4,8 +4,6 @@ See the :ref:`distribution` section of the programming manual for information on how to use these commands. """ -from __future__ import print_function - import collections import os import plistlib @@ -31,9 +29,6 @@ import panda3d.core as p3d if sys.version_info < (3, 0): - # Python 3 defines these subtypes of IOError, but Python 2 doesn't. - FileNotFoundError = IOError - # Warn the user. They might be using Python 2 by accident. print("=================================================================") print("WARNING: You are using Python 2, which has reached the end of its") diff --git a/direct/src/showbase/ProfileSession.py b/direct/src/showbase/ProfileSession.py index 80862d09b3..a1b56b92e1 100755 --- a/direct/src/showbase/ProfileSession.py +++ b/direct/src/showbase/ProfileSession.py @@ -1,4 +1,3 @@ -from __future__ import print_function from panda3d.core import TrueClock from direct.directnotify.DirectNotifyGlobal import directNotify from direct.showbase.PythonUtil import (