Skip to content
This repository was archived by the owner on Oct 10, 2023. It is now read-only.

Commit 9b119a5

Browse files
Aleksandr KozhemyakinAlexander Lakhin
authored andcommitted
Fix pylint3-detected errors after migration from python 3.7 to 3.9
1 parent abb7177 commit 9b119a5

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

helpers/sendbug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def createTask(server_base_url, user, password,
8080

8181
server_base_url = 'https://jira.postgrespro.ru'
8282
complete_url = "%s/rest/api/2/issue" % server_base_url
83-
base64string = base64.encodestring('%s:%s' % (user, password))[:-1]
83+
base64string = base64.encodebytes('%s:%s' % (user, password))[:-1]
8484
# pylint: disable=undefined-variable
8585
request = urllib2.Request(complete_url, json.dumps(data),
8686
{'Content-Type': 'application/json'})

helpers/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,4 +793,4 @@ def revoke_admin_right(domipaddress, remote_login, remote_password,
793793
"[1]; net localgroup $group %s /delete\"" % remote_login
794794
exec_command_win(cmd, domipaddress, remote_login, remote_password)
795795
else:
796-
raise("Not implemented.")
796+
raise Exception("Not implemented.")

tests/test_stub.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import os
22
import platform
33
import pytest
4-
import settings
54

65

76
@pytest.mark.test_stub

tests_install/fail_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import os
22
import platform
33
import pytest
4-
import settings
54

65

76
def fail_test(request):

0 commit comments

Comments
 (0)