4br3mm0rd / mpyg321

mpg321 wrapper for python - command line mp3 player
MIT License
22 stars 5 forks source link

Update mpg321 Library for Python 3 Compatibility #46

Open stefets opened 4 months ago

stefets commented 4 months ago

The current version of the mpg321 library relies on deprecated Python 2.7 and Python 3.x syntax. With Python 2.7 deprecated, it's essential to update mpg321 to ensure compatibility with Python 3 for ongoing support and security.

Proposed Changes:

Expected Benefits:

Steps to Implement:

Thanks!

4br3mm0rd commented 4 months ago

I believe that the library is completely working with python2 and python3. I personally run it under python3 and I don't face any issues. In the beginning I didn't want to add some more python3 features in order to support both versions (because I believe we can afford that). But if you really want it we can add some typing and python3 specific code

stefets commented 4 months ago

Hi! there is at least a Python 3 specific syntax in the lib.

It's not a priority. And I wouldn't be surprised if there is a code analyzer that can check the syntax and suggest corrections. I can take care of it in the next few weeks.

4br3mm0rd commented 4 months ago

You're right, I didn't think of it when I implemented that. OK so let's move to full python3 then :-)

stefets commented 4 months ago

Ok! I will do the changes sometime after the changes we are working on.