summaryrefslogtreecommitdiff
path: root/setuptools/_distutils/command/register.py
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-08-01 17:32:58 +0100
committerGitHub <noreply@github.com>2022-08-01 17:32:58 +0100
commit00eaec7a0c4e49af9c4062145c969f08d2953abe (patch)
tree26ac5421a2fa1c040eaa880354fee717556611a4 /setuptools/_distutils/command/register.py
parentfe6d794adea937f08146084495d0721a375d8ce7 (diff)
parent3ecabf8583b6e57d3ac47b34d6afec0b9d00b167 (diff)
downloadpython-setuptools-git-00eaec7a0c4e49af9c4062145c969f08d2953abe.tar.gz
Merge branch 'main' into docs-notfound-page
Diffstat (limited to 'setuptools/_distutils/command/register.py')
-rw-r--r--setuptools/_distutils/command/register.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/_distutils/command/register.py b/setuptools/_distutils/command/register.py
index ca407eb7..d2351ab8 100644
--- a/setuptools/_distutils/command/register.py
+++ b/setuptools/_distutils/command/register.py
@@ -7,11 +7,11 @@ Implements the Distutils 'register' command (register with the repository).
import getpass
import io
-import urllib.parse, urllib.request
+import urllib.parse
+import urllib.request
from warnings import warn
from distutils.core import PyPIRCCommand
-from distutils.errors import *
from distutils import log
@@ -104,7 +104,7 @@ class register(PyPIRCCommand):
(code, result) = self.post_to_server(self.build_post_data('verify'))
log.info('Server response (%s): %s', code, result)
- def send_metadata(self):
+ def send_metadata(self): # noqa: C901
'''Send the metadata to the package index server.
Well, do the following:
@@ -261,7 +261,7 @@ Your selection [default 1]: ''',
data['metadata_version'] = '1.1'
return data
- def post_to_server(self, data, auth=None):
+ def post_to_server(self, data, auth=None): # noqa: C901
'''Post a query to the server, and return a string response.'''
if 'name' in data:
self.announce(