Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

setup.py: make print statements compatible with both Python 2 and 3 #102

Merged
merged 1 commit into from
Apr 3, 2019

Conversation

mcprat
Copy link
Contributor

@mcprat mcprat commented Apr 3, 2019

Let the setup.py script have compatibility for installing on Python 3, but say it is meant for Python 2

@mcprat
Copy link
Contributor Author

mcprat commented Apr 3, 2019

Among many other examples, I used this guide for cross-compatible code
https://python-future.org/compatible_idioms.html

@ladyada ladyada merged commit 498d8a1 into adafruit:master Apr 3, 2019
mcprat pushed a commit to mcprat/Adafruit_Python_GPIO that referenced this pull request Apr 4, 2019
Similar to adafruit#102 

In the future consider more print statements for where and when errors would appear in code
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.

2 participants