colinta / SublimeStringEncode

Converts characters from one "encoding" to another using a transformation (think HTML entities, not character encodings)
Other
150 stars 22 forks source link

Removed `cmp_to_key` for Sublime Text 2 support #9

Closed twolfson closed 11 years ago

twolfson commented 11 years ago

Sublime Text 2 was not able to load the StringEncode plugin when installed via Package Control. The error message I got was:

Reloading plugin /home/todd/.config/sublime-text-2/Packages/StringEncode/string_encode.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./string_encode.py", line 6, in <module>
    from functools import cmp_to_key
ImportError: cannot import name cmp_to_key

After removing the line in question, the plugin went back to functioning. I didn't see any other locations in the code which used cmp_to_key

For reference, I am on Linux Mint 14 and running Sublime Text 2.0.2, Build 2221. I have not yet upgraded as not all of my plugins are compatible.

http://www.caniswitchtosublimetext3.com/14f

colinta commented 11 years ago

Cool! Yeah that's not used anymore.

There is also an st2 branch on most of my plugins; those should still work, too.