Skip to content

Commit

Permalink
Fix deprecation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Oct 8, 2020
1 parent 7df3ab9 commit 5c7ae68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/OFS/tests/testObjectManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from AccessControl.SpecialUsers import emergency_user
from AccessControl.SpecialUsers import nobody
from AccessControl.SpecialUsers import system
from AccessControl.User import User # before SpecialUsers
from AccessControl.users import User # before SpecialUsers
from Acquisition import Implicit
from Acquisition import aq_self
from App.config import getConfiguration
Expand Down
4 changes: 2 additions & 2 deletions src/Zope2/App/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import types
from time import asctime

import AccessControl.User
import AccessControl.users
import App.ZApplication
import OFS.Application
import ZODB
Expand Down Expand Up @@ -120,7 +120,7 @@ def startup():
DB.classFactory = ClassFactory.ClassFactory

# "Log on" as system user
newSecurityManager(None, AccessControl.User.system)
newSecurityManager(None, AccessControl.users.system)

# Set up the CA
load_zcml()
Expand Down

0 comments on commit 5c7ae68

Please sign in to comment.