A few lines were indented using spaces instead of tabs -- fix them.

This commit is contained in:
Guido van Rossum 1998-03-26 20:56:10 +00:00
parent fa6e254b34
commit 8ca842066c
12 changed files with 282 additions and 265 deletions

View file

@ -72,14 +72,15 @@ class NNTP:
self.debugging = 0
self.welcome = self.getresp()
if user:
resp = self.shortcmd('authinfo user '+user)
if resp[:3] == '381':
if not password:
raise error_reply, resp
else:
resp = self.shortcmd('authinfo pass '+password)
if resp[:3] != '281':
raise error_perm, resp
resp = self.shortcmd('authinfo user '+user)
if resp[:3] == '381':
if not password:
raise error_reply, resp
else:
resp = self.shortcmd(
'authinfo pass '+password)
if resp[:3] != '281':
raise error_perm, resp
# Get the welcome message from the server
# (this is read and squirreled away by __init__()).