Fix Python 3.8 incompatibility
This commit is contained in:
parent
9f6f5e92f5
commit
a6e2c8e6db
@ -1,4 +1,3 @@
|
||||
from argparse import BooleanOptionalAction
|
||||
import logging
|
||||
|
||||
from sqlalchemy import update
|
||||
@ -42,8 +41,10 @@ def command_create(args):
|
||||
|
||||
|
||||
@add_argument("name")
|
||||
@add_argument("--public", action=BooleanOptionalAction)
|
||||
@add_argument("--join", action=BooleanOptionalAction)
|
||||
@add_argument("--public", dest="public", action="store_const", const=True)
|
||||
@add_argument("--no-public", dest="public", action="store_const", const=False)
|
||||
@add_argument("--join", dest="join", action="store_const", const=True)
|
||||
@add_argument("--no-join", dest="join", action="store_const", const=False)
|
||||
def command_edit(args):
|
||||
"""
|
||||
Update a lexicon's configuration.
|
||||
|
Loading…
Reference in New Issue
Block a user