diff options
author | Joe George <joe@zeroc.com> | 2014-12-08 11:35:51 -0500 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2014-12-08 11:35:51 -0500 |
commit | eb1ba748e5a0a8a685774e3847bef13a11dce21e (patch) | |
tree | 728afe90a090a17046f20e941cf02a9ab5089717 | |
parent | Fixed ICE-6070: IceStorm batch datagram test failure (diff) | |
download | ice-eb1ba748e5a0a8a685774e3847bef13a11dce21e.tar.bz2 ice-eb1ba748e5a0a8a685774e3847bef13a11dce21e.tar.xz ice-eb1ba748e5a0a8a685774e3847bef13a11dce21e.zip |
ICE-6088 - Fix allDemos to work with python 3
-rwxr-xr-x | allDemos.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/allDemos.py b/allDemos.py index a026acef24d..d6dbcb3d305 100755 --- a/allDemos.py +++ b/allDemos.py @@ -18,10 +18,10 @@ demoGroups = [] subdirs = [ "cpp", "java", "cs", "py", "rb", "js"] for d in subdirs: - + filename = os.path.abspath(os.path.join(os.path.dirname(__file__), d, "allDemos.py")) - f = file(filename, "r") - current_mod = imp.load_module("allDemos", f, filename, (".py", "r", imp.PY_SOURCE)) + f = open(filename, "r") + current_mod = imp.load_module("allDemos", f, filename, (".py", "r", imp.PY_SOURCE)) f.close() demos = [ os.path.join(d, "demo", x) for x in current_mod.demos ] |