Skip to content
This repository was archived by the owner on Feb 9, 2024. It is now read-only.

Adds support for Python 3#6

Open
Dunedan wants to merge 2 commits intotrueaccord:masterfrom
smaato:python3-support
Open

Adds support for Python 3#6
Dunedan wants to merge 2 commits intotrueaccord:masterfrom
smaato:python3-support

Conversation

@Dunedan
Copy link

@Dunedan Dunedan commented Jul 26, 2016

As DogPush didn't support Python 3 this pull request adds support for it.

severity = original.get('severity') or 'CRITICAL'
if team:
if isinstance(team, basestring):
if isinstance(team, str):
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this will break Python 2, since we get unicode objects out of the yaml file.

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, I completely overlooked that. I pushed another commit in the meanwhile, which should fix that.

@tuxinaut
Copy link

Any reasons why the pull request is still open?

@thesamet
Copy link
Contributor

thesamet commented Nov 22, 2016

Going forward, it seems unnecessary effort to me to support Python 2 and 3 at the same time, and since we don't have unit test coverage (yet) - why take the chance. What's your use case where you can use Python 3 but not Python 2?

@tuxinaut
Copy link

Yes sure support both is way to much effort. It's not a real argument but python3 is the future 🚀

@infothrill
Copy link

When can we expect to get this merged? The complexity of the patch involving list() and print() seems perfectly reasonable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants