mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #8890: Stop advertising an insecure use of /tmp in docs
This commit is contained in:
commit
827b36bed8
14 changed files with 31 additions and 26 deletions
|
@ -46,7 +46,7 @@ To post an article from a binary file (this assumes that the article has valid
|
|||
headers, and that you have right to post on the particular newsgroup)::
|
||||
|
||||
>>> s = nntplib.NNTP('news.gmane.org')
|
||||
>>> f = open('/tmp/article.txt', 'rb')
|
||||
>>> f = open('article.txt', 'rb')
|
||||
>>> s.post(f)
|
||||
'240 Article posted successfully.'
|
||||
>>> s.quit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue