aliles / filemagic

File type identification using libmagic
http://pypi.python.org/pypi/filemagic
Other
47 stars 10 forks source link

AttributeError in python 3.3 #10

Closed migueldvb closed 10 years ago

migueldvb commented 10 years ago

When I use magi.Magic in a with context statement in python 3.3 I get the following error:

AttributeError: __exit__

This problem is not present in earlier versions of python.

aliles commented 10 years ago

Hi, thank you for reporting this issue. Sounds like I've made a silly error.

Which previous version(s) of Python have you confirmed work on for you?

migueldvb commented 10 years ago

It used to work well in python 2.6 and 2.7.

tankbusta commented 10 years ago

This isn't a Python 3.3 problem as the same error occurs on the latest 2.7.X builds. (even the test cases properly instantiate magic.Magic)

This should be merged :+1: