summaryrefslogtreecommitdiff
path: root/distutils2/command/register.py
diff options
context:
space:
mode:
Diffstat (limited to 'distutils2/command/register.py')
-rw-r--r--distutils2/command/register.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/distutils2/command/register.py b/distutils2/command/register.py
index 74f708c..3d5bc23 100644
--- a/distutils2/command/register.py
+++ b/distutils2/command/register.py
@@ -92,7 +92,7 @@ class register(Command):
'''
# send the info to the server and report the result
code, result = self.post_to_server(self.build_post_data('verify'))
- logger.info('Server response (%s): %s' % (code, result))
+ logger.info('Server response (%s): %s', code, result)
def send_metadata(self):
@@ -206,18 +206,18 @@ Your selection [default 1]: ''', logging.INFO)
data['email'] = raw_input(' EMail: ')
code, result = self.post_to_server(data)
if code != 200:
- logger.info('Server response (%s): %s' % (code, result))
+ logger.info('Server response (%s): %s', code, result)
else:
logger.info('You will receive an email shortly.')
- logger.info(('Follow the instructions in it to '
- 'complete registration.'))
+ logger.info('Follow the instructions in it to '
+ 'complete registration.')
elif choice == '3':
data = {':action': 'password_reset'}
data['email'] = ''
while not data['email']:
data['email'] = raw_input('Your email address: ')
code, result = self.post_to_server(data)
- logger.info('Server response (%s): %s' % (code, result))
+ logger.info('Server response (%s): %s', (code, result))
def build_post_data(self, action):
# figure the data to send - the metadata plus some additional