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

'dict' object has no attribute 'has_key' #30

Closed felixhao28 closed 8 years ago

felixhao28 commented 8 years ago
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 798, in run_
    return self.run(edit)
  File "C:\Users\XXX\AppData\Roaming\Sublime Text 3\Packages\SublimeStringEncode\string_encode.py", line 99, in run
    elif kwargs.has_key('source'):
AttributeError: 'dict' object has no attribute 'has_key'

In python3 has_key is deprecated.

colinta commented 8 years ago

aww shoot. one sec.

thanks for reporting!

On Jul 5, 2016, at 8:14 PM, Felix Hao notifications@github.com wrote:

Traceback (most recent call last): File "C:\Program Files\Sublime Text 3\sublimeplugin.py", line 798, in run return self.run(edit) File "C:\Users\XXX\AppData\Roaming\Sublime Text 3\Packages\SublimeStringEncode\string_encode.py", line 99, in run elif kwargs.has_key('source'): AttributeError: 'dict' object has no attribute 'has_key'

In python3 has_key is deprecated https://docs.python.org/3.1/whatsnew/3.0.html#builtins.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/colinta/SublimeStringEncode/issues/30, or mute the thread https://github.com/notifications/unsubscribe/AABrsl1ottyq4ouuv45NblMUKiFVzLyFks5qSw-QgaJpZM4JFsdy.

colinta commented 8 years ago

Fixed in 2.2.1.