mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
rename debug() to set_debuglevel()
This commit is contained in:
parent
189f8fb8f7
commit
cf5394f88e
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue