Fix build break
This commit is contained in:
parent
964746d323
commit
f091852682
6
buku
6
buku
@ -2794,8 +2794,8 @@ PROMPT KEYS:
|
||||
assert len(arg) == 5
|
||||
for c in arg:
|
||||
assert c in COLORMAP
|
||||
except AssertionError:
|
||||
raise argparse.ArgumentTypeError('%s is not a valid color string' % arg)
|
||||
except AssertionError as e:
|
||||
raise argparse.ArgumentTypeError('%s is not a valid color string' % arg) from e
|
||||
return arg
|
||||
|
||||
# Help
|
||||
@ -2807,7 +2807,7 @@ PROMPT KEYS:
|
||||
file : file, optional
|
||||
File to write program info to. Default is sys.stdout.
|
||||
"""
|
||||
super(ExtendedArgumentParser, self).print_help(file)
|
||||
super().print_help(file)
|
||||
self.program_info(file)
|
||||
|
||||
|
||||
|
@ -11,11 +11,11 @@ import sqlite3
|
||||
import sys
|
||||
import urllib
|
||||
import zipfile
|
||||
from genericpath import exists
|
||||
from tempfile import TemporaryDirectory, NamedTemporaryFile
|
||||
|
||||
from unittest import mock
|
||||
import unittest
|
||||
from genericpath import exists
|
||||
import pytest
|
||||
import yaml
|
||||
from hypothesis import given, example, settings
|
||||
|
Loading…
Reference in New Issue
Block a user