matllubos / mimeparse

Automatically exported from code.google.com/p/mimeparse
MIT License
0 stars 0 forks source link

[PATCH] Port mimeparse to python 3 #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Another issue for porting mimeparse.py to python 3 :)

Patch applies cleanly to r22 and was tested with 2.5, 2.6, 2.7, 3.1, 3.2, and 
3.3.

Also updates setup.py with the python3 trove classifiers.

$ patch -p0 -i ../py3k-patch.diff

$ for ver in 3.1.4 3.2.3 3.3; do echo $ver && 
$(~/.pythonbrew/pythons/Python-$ver/bin/python3 mimeparse_test.py); done;
3.1.4
.............................
----------------------------------------------------------------------
Ran 29 tests in 0.002s

OK
3.2.3
.............................
----------------------------------------------------------------------
Ran 29 tests in 0.004s

OK
3.3
.............................
----------------------------------------------------------------------
Ran 29 tests in 0.004s

OK

$ ~/.pythonbrew/pythons/Python-2.5.6/bin/python mimeparse_test.py
.............................
----------------------------------------------------------------------
Ran 29 tests in 0.002s

OK

$ python2.6 mimeparse_test.py
.............................
----------------------------------------------------------------------
Ran 29 tests in 0.002s

OK

$ ~/.pythonbrew/pythons/Python-2.7.3/bin/python mimeparse_test.py
.............................
----------------------------------------------------------------------
Ran 29 tests in 0.003s

OK

Original issue reported on code.google.com by skryskalla on 4 Oct 2012 at 7:24

Attachments:

GoogleCodeExporter commented 9 years ago
Applied and released in 0.1.4.

Original comment by joe.gregorio@gmail.com on 2 Jan 2013 at 5:00