py34 support

This commit is contained in:
Piper Merriam 2017-02-02 17:13:33 -07:00
parent 782bd7329a
commit 012dd24156

View File

@ -5,4 +5,8 @@ from urllib.parse import ( # noqa: F401
urlunparse,
)
Generator = collections.Generator
try:
Generator = collections.Generator
except AttributeError:
# py34
Generator = type(_ for _ in tuple())