| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5cbeb4b commit d25f4f8
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -135,7 +135,9 @@ | |||
| 135 | 135 | '_markupbase', | |
| 136 | 136 | '_thread', | |
| 137 | 137 | 'builtins', | |
| 138 | - # 'configparser', | ||
| 138 | + # Catch the case that configparser is in the build folder | ||
| 139 | + # from a previous version of `future`: | ||
| 140 | + 'configparser', | ||
| 139 | 141 | 'copyreg', | |
| 140 | 142 | 'html', | |
| 141 | 143 | 'http', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -755,7 +755,9 @@ def __enter__(self): | |||
| 755 | 755 | self.old_sys_modules = copy.copy(sys.modules) | |
| 756 | 756 | if sys.version_info[0] < 3: | |
| 757 | 757 | return | |
| 758 | - FUTURE_SOURCE_SUBFOLDERS = ['future', 'past', 'libfuturize', 'configparser'] | ||
| 758 | + # The presence of all these indicates we've found our source folder, | ||
| 759 | + # because `builtins` won't have been installed in site-packages by setup.py: | ||
| 760 | + FUTURE_SOURCE_SUBFOLDERS = ['future', 'past', 'libfuturize', 'libpasteurize', 'builtins'] | ||
| 759 | 761 | ||
| 760 | 762 | # Look for the future source folder: | |
| 761 | 763 | for folder in self.old_sys_path: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments