Skip to content

Instantly share code, notes, and snippets.

@bastelflp
Last active December 14, 2015 18:50
Show Gist options
  • Save bastelflp/2fd50598d625f09d87d5 to your computer and use it in GitHub Desktop.
Save bastelflp/2fd50598d625f09d87d5 to your computer and use it in GitHub Desktop.
check python3 in one line
import sys
PY3 = sys.version_info[0] == 3
PY35 = sys.version_info[:2] == (3, 5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment