summaryrefslogtreecommitdiffstats
path: root/Lib/nntplib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-03-26 20:56:10 (GMT)
committerGuido van Rossum <guido@python.org>1998-03-26 20:56:10 (GMT)
commit8ca842066c947179892d50bf17b57943e7e5cd6b (patch)
tree36f095712bb110abdb9d129e8a59a09e4ce8d087 /Lib/nntplib.py
parentfa6e254b34b7a0f85cb34a9fd99b5a6400714940 (diff)
downloadcpython-8ca842066c947179892d50bf17b57943e7e5cd6b.zip
cpython-8ca842066c947179892d50bf17b57943e7e5cd6b.tar.gz
cpython-8ca842066c947179892d50bf17b57943e7e5cd6b.tar.bz2
A few lines were indented using spaces instead of tabs -- fix them.
Diffstat (limited to 'Lib/nntplib.py')
-rw-r--r--Lib/nntplib.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/Lib/nntplib.py b/Lib/nntplib.py
index 85c2a63..0ee3ab0 100644
--- a/Lib/nntplib.py
+++ b/Lib/nntplib.py
@@ -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__()).