Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf5394f

Browse files
committed
rename debug() to set_debuglevel()
1 parent 189f8fb commit cf5394f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/nntplib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ def getwelcome(self):
8383
# 1: print commands and responses but not body text etc.
8484
# 2: also print raw lines read and sent before stripping CR/LF
8585

86-
def debug(self, level):
86+
def set_debuglevel(self, level):
8787
self.debugging = level
88+
debug = set_debuglevel
8889

8990
# Internal: send one line to the server, appending CRLF
9091
def putline(self, line):

0 commit comments

Comments
 (0)