sobjects/__init__.py
changeset 10614 57dfde80df11
parent 8696 0bb18407c053
child 10663 54b8a1f249fb
--- a/sobjects/__init__.py	Thu Sep 17 09:52:06 2015 +0200
+++ b/sobjects/__init__.py	Tue Sep 15 15:33:47 2015 +0200
@@ -26,5 +26,5 @@
     if vreg.config.apphome:
         url_mapping_file = osp.join(vreg.config.apphome, 'urlmapping.py')
         if osp.exists(url_mapping_file):
-            URL_MAPPING = eval(file(url_mapping_file).read())
+            URL_MAPPING = eval(open(url_mapping_file).read())
             vreg.info('using url mapping %s from %s', URL_MAPPING, url_mapping_file)