Natasha15030003 / pyfilesystem

Automatically exported from code.google.com/p/pyfilesystem
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Files opened by opener.open() error on close #107

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
    1. Run the attached unit test

What is the expected output? What do you see instead?

    Expected:
        Ran 1 test in 0.002s

        OK

    Actual:
        AttributeError: 'super' object has no attribute 'close'

What version of the product are you using? On what operating system?

    URL: http://pyfilesystem.googlecode.com/svn/trunk
    Repository Root: http://pyfilesystem.googlecode.com/svn
    Repository UUID: 67cdc799-7952-0410-af00-57a81ceafa0f
    Revision: 750

    Mac OS X 10.6.8

To fix, change line 128 in opener.py from:

        ret = super(_FSClosingFile).close()

to:

        ret = super(_FSClosingFile, self).close()

Original issue reported on code.google.com by rleftw...@lightkeeper.com on 25 Jan 2012 at 6:57

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks. applied.

Original comment by willmcgugan on 26 Jan 2012 at 2:08