[issue17818] aifc.Aifc_read/Aifc_write.getparams can return a namedtuple

R. David Murray report at bugs.python.org
Thu Jul 25 20:57:17 CEST 2013


R. David Murray added the comment:

pyclbr is parsing the source code, and since _Aifc_params is not a class, it does not get detected.  So we just need to add it to the ignore list in the pyclbr test.

I'm also getting this when I run the test with your patch applied:

/home/rdmurray/python/p34/Lib/unittest/case.py:496: ResourceWarning: unclosed file <_io.BufferedReader name='@test_9764_tmp'>
  testMethod()

Looks like you are missing a close or two.

Oh, and it occurs to me that _Aifc_params doesn't follow pep8.  aifc should either be all lower case or, if you are viewing it as a class, it should be _AIFCParams.

----------

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


More information about the Python-bugs-list mailing list