Issue #8890: Stop advertising an insecure use of /tmp in docs

This commit is contained in:
Petri Lehtinen 2013-02-23 19:37:01 +01:00
commit 827b36bed8
14 changed files with 31 additions and 26 deletions

View file

@ -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()