File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def read_input_files(files):
42
42
print (f'\n Error while processing { f } : { e } \n \n ' )
43
43
raise
44
44
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' ]} ." )
46
46
47
47
apis [name ] = descr
48
48
Original file line number Diff line number Diff line change @@ -162,12 +162,8 @@ class CARequestUnitTest(unittest.TestCase):
162
162
"""
163
163
This test check if the basic HTTP authentication uses UTF-8 encoding.
164
164
"""
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'
171
167
buser = user.encode('utf-8')
172
168
bpassword = password.encode('utf-8')
173
169
secret = b':'.join((buser, bpassword))
You can’t perform that action at this time.
0 commit comments