summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2014-12-08 11:35:51 -0500
committerJoe George <joe@zeroc.com>2014-12-08 11:35:51 -0500
commiteb1ba748e5a0a8a685774e3847bef13a11dce21e (patch)
tree728afe90a090a17046f20e941cf02a9ab5089717
parentFixed ICE-6070: IceStorm batch datagram test failure (diff)
downloadice-eb1ba748e5a0a8a685774e3847bef13a11dce21e.tar.bz2
ice-eb1ba748e5a0a8a685774e3847bef13a11dce21e.tar.xz
ice-eb1ba748e5a0a8a685774e3847bef13a11dce21e.zip
ICE-6088 - Fix allDemos to work with python 3
-rwxr-xr-xallDemos.py6
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 ]