Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with missing has_key in Python 3.0+ #3

Closed
truemongo opened this issue Apr 7, 2015 · 1 comment
Closed

Problem with missing has_key in Python 3.0+ #3

truemongo opened this issue Apr 7, 2015 · 1 comment
Assignees
Labels

Comments

@truemongo
Copy link

There are a couple of instances in GEF of calls to dict.has_key(), which was removed in Python 3.0.
Changing those to "xxx in dict" rather than "dict.has_key(xxx)" seems to fix the problem and should be backwards compatible.

@hugsy hugsy added the bug label Apr 7, 2015
@hugsy hugsy self-assigned this Apr 7, 2015
hugsy pushed a commit that referenced this issue Apr 7, 2015
  * dict.has_key(k) ->  k in list( dict.keys() )
  * dict.iteritems() -> dict->items()
hugsy pushed a commit that referenced this issue Apr 7, 2015
  * from __future__  statement
@hugsy
Copy link
Owner

hugsy commented Apr 7, 2015

Fixed by 0bd1ef5.

Thanks for report 👍

@hugsy hugsy closed this as completed Apr 7, 2015
SakiiR pushed a commit to SakiiR/gef that referenced this issue Jul 1, 2019
  * dict.has_key(k) ->  k in list( dict.keys() )
  * dict.iteritems() -> dict->items()
SakiiR pushed a commit to SakiiR/gef that referenced this issue Jul 1, 2019
  * from __future__  statement
SakiiR pushed a commit to SakiiR/gef that referenced this issue Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants