Skip to content

Commit

Permalink
Prelimenary python 3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
kedder committed Feb 26, 2013
1 parent 09513dc commit 01848f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -77,7 +77,7 @@ def read(*rnames):
'zope.app.publication',
'zope.component >= 3.8.0',
'zope.configuration',
'zope.container',
'zope.container >= 4.0.0a2',
'zope.error',
'zope.event',
'zope.interface',
Expand Down
4 changes: 2 additions & 2 deletions src/zope/app/appsetup/appsetup.py
Expand Up @@ -26,8 +26,8 @@
from zope.security.management import system_user
import zope.processlifetime

@zope.interface.implementer(IParticipation)
class SystemConfigurationParticipation(object):
zope.interface.implements(IParticipation)

principal = system_user
interaction = None
Expand Down Expand Up @@ -129,7 +129,7 @@ def database(db):
if db.endswith('.py'):
# Python source, exec it
globals = {}
execfile(db, globals)
exec(compile(open(db).read(), db, 'exec'), globals)
if 'DB' in globals:
db = globals['DB']
else:
Expand Down
2 changes: 1 addition & 1 deletion src/zope/app/appsetup/bootstrap.py
Expand Up @@ -119,7 +119,7 @@ def addUtility(root_folder, utility_type, utility_factory,
utility = package[name]

# Set additional attributes on the utility
for k, v in kw.iteritems():
for k, v in kw.items():
setattr(utility, k, v)
return utility

Expand Down

0 comments on commit 01848f2

Please sign in to comment.