Browse Source

adapt __main__ to remove context manager

master
Edoardo Putti 8 years ago
parent
commit
683c978d18
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      manager.py

+ 3
- 3
manager.py View File

@ -113,7 +113,7 @@ def sign_request(ca_manager, request_id, authority_id):
if __name__ == '__main__':
from ca_shell import CAManagerShell
from shell import CAManagerShell
init_manager([
MANAGER_PATH,
@ -123,6 +123,6 @@ if __name__ == '__main__':
])
with CAManager(MANAGER_PATH) as ca_manager:
ca_manager = CAManager(MANAGER_PATH)
CAManagerShell(ca_manager).cmdloop()
CAManagerShell(ca_manager).cmdloop()

Loading…
Cancel
Save