Skip to content

Commit 6b988f8

Browse files
committed
[#3287] address review
1 parent 3791bb0 commit 6b988f8

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

doc/sphinx/api2doc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def read_input_files(files):
4242
print(f'\nError while processing {f}: {e}\n\n')
4343
raise
4444
if name != descr['name']:
45-
raise ValueError("Expected name == descr['name']. Name is {name} and descr['name'] is {descr['name']}.")
45+
raise ValueError(f"Expected name == descr['name']. Name is {name}, descr['name'] is {descr['name']}.")
4646

4747
apis[name] = descr
4848

src/bin/shell/tests/shell_unittest.py.in

+2-6
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,8 @@ class CARequestUnitTest(unittest.TestCase):
162162
"""
163163
This test check if the basic HTTP authentication uses UTF-8 encoding.
164164
"""
165-
if sys.version_info[0] == 3:
166-
user = 'libert\xe9'
167-
password = '\xe9galit\xe9'
168-
else:
169-
user = 'libert\xe9'
170-
password = '\xe9galit\xe9'
165+
user = 'libert\xe9'
166+
password = '\xe9galit\xe9'
171167
buser = user.encode('utf-8')
172168
bpassword = password.encode('utf-8')
173169
secret = b':'.join((buser, bpassword))

0 commit comments

Comments
 (0)