Fix Python 3.8 incompatibility

This commit is contained in:
Tim Van Baak 2021-06-23 20:23:54 -07:00
parent 9f6f5e92f5
commit a6e2c8e6db
1 changed files with 4 additions and 3 deletions

View File

@ -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.