Skip to content

Commit

Permalink
Python 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
zopyx committed Jan 8, 2019
1 parent 596794b commit 04de7dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ New features:

Bug fixes:

- *add item here*
- Python 3 compatibility for generated bin/zeopack script
[ajung]


2.0.0 (2018-12-03)
Expand Down
6 changes: 3 additions & 3 deletions src/plone/recipe/zeoserver/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,11 @@ def install_scripts(self):
arguments_info += ("import getopt; opts = "
"getopt.getopt(sys.argv[1:], 'S:B:D:W1')[0];\n"
"opts = dict(opts)\n"
"storage = opts.has_key('-S') and "
"storage = opts.get('-S') and "
"opts['-S'] or storage\n"
"blob_dir = opts.has_key('-B') and "
"blob_dir = opts.get('-B') and "
"opts['-B'] or blob_dir\n"
"days = opts.has_key('-D') and "
"days = opts.get('-D') and "
"opts['-D'] or days\n"
)

Expand Down

0 comments on commit 04de7dc

Please sign in to comment.