mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
A few lines were indented using spaces instead of tabs -- fix them.
This commit is contained in:
parent
fa6e254b34
commit
8ca842066c
12 changed files with 282 additions and 265 deletions
|
@ -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__()).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue