Skip to content

Instantly share code, notes, and snippets.

@Farrukhraz
Created June 2, 2020 17:27
Show Gist options
  • Save Farrukhraz/80e6b769c011be44aa9fba8fe688f68b to your computer and use it in GitHub Desktop.
Save Farrukhraz/80e6b769c011be44aa9fba8fe688f68b to your computer and use it in GitHub Desktop.
do this if python3, elif python2 do this
if sys.version_info.major == 2:
BaseStrType_ = basestring
else:
BaseStrType_ = str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment