Skip to content

Remove usage of six lib.#16

Merged
AbdealiLoKo merged 1 commit intocorridor:masterfrom
kishan3:remove_six_usage
Nov 3, 2022
Merged

Remove usage of six lib.#16
AbdealiLoKo merged 1 commit intocorridor:masterfrom
kishan3:remove_six_usage

Conversation

@kishan3
Copy link
Copy Markdown
Contributor

@kishan3 kishan3 commented Oct 7, 2022

Fix for #13

@kishan3
Copy link
Copy Markdown
Contributor Author

kishan3 commented Oct 27, 2022

Please add hactoberfest label thank you.


def iteritems(self):
return six.iteritems(self.objects)
return iter(self.objects)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

six.iteritems gives is a iterator of key, val pairs.
But iter() will just give us an iterator for keys

So, this is not equivalent
In fact - I think we can just remove this function because iteritems is not a function people in py3 use after dict_items was added in py3

Six is useful for py2 and py3 compatibility.
We only support py3.6+
So, we don't require six anymore
@AbdealiLoKo
Copy link
Copy Markdown
Contributor

Thanks for the contribution @kishan3
I have fixed the above issue with iteritems() and modified the commit message to meet the CONTRIBUTIONS guidelines
This should get merged soon

@AbdealiLoKo AbdealiLoKo closed this Nov 3, 2022
@AbdealiLoKo AbdealiLoKo reopened this Nov 3, 2022
@AbdealiLoKo AbdealiLoKo enabled auto-merge (rebase) November 3, 2022 06:59
@AbdealiLoKo AbdealiLoKo merged commit d4c20d7 into corridor:master Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants