]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
rename debug() to set_debuglevel()
authorGuido van Rossum <guido@python.org>
Thu, 30 Mar 1995 10:42:34 +0000 (10:42 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 30 Mar 1995 10:42:34 +0000 (10:42 +0000)
Lib/nntplib.py

index fafef57d7cb810bdae95ba0e36ed37f3eb8fe14c..8d0d6afd14cac005013de42f913d72769dc69e31 100644 (file)
@@ -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):