[issue9987] usenetrc option broken

Antoine Pitrou report at bugs.python.org
Wed Sep 29 18:09:24 CEST 2010


New submission from Antoine Pitrou <pitrou at free.fr>:

The nntplib cleanup broke the "usenetrc" option to NNTP:


Traceback (most recent call last):
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test_nntplib.py", line 167, in setUp
    self.server = NNTP(self.NNTP_HOST, timeout=TIMEOUT)
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/nntplib.py", line 937, in __init__
    readermode, usenetrc, timeout)
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/nntplib.py", line 329, in __init__
    auth = credentials.authenticators(host)
NameError: global name 'host' is not defined

----------
assignee: pitrou
components: Library (Lib)
messages: 117627
nosy: pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: usenetrc option broken
type: behavior
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9987>
_______________________________________


More information about the Python-bugs-list mailing list