Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Drop Python 2.6 support #344

jodal opened this Issue · 2 comments

2 participants


Most distros we care about (Ubuntu, Arch, etc) have had Python 2.7 as the default Python 2.x implementation for a long time. We also care about Debian, and a lot of the users running Mopidy on Debian use Debian stable. The current Debian stable version, squeeze, has Python 2.6 as default. The next Debian stable version, wheezy, has Python 2.7 as default. The trend of the RC bug count concerning wheezy (see indicates that wheezy may become the new Debian stable in 1-3 months time. (Famous last words, I know.)

I propose that as soon as Debian wheezy is released, we drop support for Python 2.6 and require Python 2.7. This will have the following benefits:

  • Reduce the number of versions to support, so that we can spend more time on Python 3 support instead.
  • Python 2.7 is closer to Python 3, easing the migration path.
  • Remove need for bytestring kwargs dict hacks introduced to fix #302.
  • Gives us access to argparse, so we can replace deprecated optparse.
  • Remove need for unittest2 development dependency and from tests import unittest hack, as unittest2 is available as unittest in Python 2.7.

Feel free to add further benefits or drawbacks as comments. Please shout out if you think we should continue to support Python 2.6 after Debian stable gets Python 2.7.

@jodal jodal was assigned

Anything more to do for this, or can we close it?


Since we have #437 we can close it :-)

@jodal jodal closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.