We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a136ed commit adf1d24Copy full SHA for adf1d24
1 file changed
qencode/_compat.py
@@ -0,0 +1,10 @@
1
+# flake8: NOQA
2
+import sys
3
+
4
+PY2 = sys.version_info[0] == 2
5
6
7
+if PY2:
8
+ string_types = (str, unicode)
9
+else:
10
+ string_types = (str,)
0 commit comments