Skip to content

Commit

Permalink
Fix argparse issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Fantomas42 committed Mar 6, 2020
1 parent d1a4422 commit 118a6ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bvc/scripts/check_buildout_updates.py
@@ -1,11 +1,10 @@
"""Command line for Buildout Versions Checker"""
import copy
import logging
import sys
from argparse import Action
from argparse import ArgumentError
from argparse import ArgumentParser
from argparse import _ensure_value
from argparse import _copy_items

from bvc.checker import VersionsChecker
from bvc.configparser import VersionsConfigParser
Expand All @@ -18,7 +17,8 @@
class StoreSpecifiers(Action):

def __call__(self, parser, namespace, values, option_string=None):
items = copy.copy(_ensure_value(namespace, self.dest, {}))
items = getattr(namespace, self.dest, None)
items = _copy_items(items)

try:
key, value = values.split(':')
Expand Down

0 comments on commit 118a6ff

Please sign in to comment.