-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from pipermerriam/piper/code-reorganization
split out six module
- Loading branch information
Showing
9 changed files
with
37 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
from .string import ( | ||
force_bytes, | ||
) | ||
from .compat import ( | ||
from .six import ( | ||
Generator, | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +0,0 @@ | ||
from urlparse import ( # noqa: F401 | ||
urlparse, | ||
urlunparse, | ||
) | ||
Generator = type(_ for _ in tuple()) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +0,0 @@ | ||
import collections | ||
|
||
from urllib.parse import ( # noqa: F401 | ||
urlparse, | ||
urlunparse, | ||
) | ||
|
||
try: | ||
Generator = collections.Generator | ||
except AttributeError: | ||
# py34 | ||
Generator = type(_ for _ in tuple()) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import sys | ||
|
||
|
||
if sys.version_info.major == 2: | ||
from .six_py2 import ( | ||
urlparse, | ||
urlunparse, | ||
Generator, | ||
) | ||
else: | ||
from .six_py3 import ( # noqa: #401 | ||
urlparse, | ||
urlunparse, | ||
Generator, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from urlparse import ( # noqa: F401 | ||
urlparse, | ||
urlunparse, | ||
) | ||
Generator = type(_ for _ in tuple()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import collections | ||
|
||
from urllib.parse import ( # noqa: F401 | ||
urlparse, | ||
urlunparse, | ||
) | ||
|
||
try: | ||
Generator = collections.Generator | ||
except AttributeError: | ||
# py34 | ||
Generator = type(_ for _ in tuple()) |