summaryrefslogtreecommitdiffstats
path: root/Lib/nntplib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-03-30 10:42:34 (GMT)
committerGuido van Rossum <guido@python.org>1995-03-30 10:42:34 (GMT)
commitcf5394f88ec2b736d23ed2bbaaa05604414efb19 (patch)
treeb3c9849b73ee1039c040362f4b8b186814a40c89 /Lib/nntplib.py
parent189f8fb8f72331e6b8160fdcbd0245d88baa90cc (diff)
downloadcpython-cf5394f88ec2b736d23ed2bbaaa05604414efb19.zip
cpython-cf5394f88ec2b736d23ed2bbaaa05604414efb19.tar.gz
cpython-cf5394f88ec2b736d23ed2bbaaa05604414efb19.tar.bz2
rename debug() to set_debuglevel()
Diffstat (limited to 'Lib/nntplib.py')
-rw-r--r--Lib/nntplib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/nntplib.py b/Lib/nntplib.py
index fafef57..8d0d6af 100644
--- a/Lib/nntplib.py
+++ b/Lib/nntplib.py
@@ -83,8 +83,9 @@ class NNTP:
# 1: print commands and responses but not body text etc.
# 2: also print raw lines read and sent before stripping CR/LF
- def debug(self, level):
+ def set_debuglevel(self, level):
self.debugging = level
+ debug = set_debuglevel
# Internal: send one line to the server, appending CRLF
def putline(self, line):