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