mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Hacking sys.modules here was added unconditionally to fix an import problem on Windows (with Python 2.7???). This script works fine on Python 2.7 on macOS either with or without this hack. This script breaks badly on Python 3.8 on macOS with this hack, so I've disabled it here for all Python 3.
16 lines
479 B
Python
Executable File
16 lines
479 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import sys
|
|
|
|
import update_checkout
|
|
|
|
if __name__ == '__main__':
|
|
# This line was added in dfe3af81b2 to address an importing issue on
|
|
# Windows. It causes this script to break badly when used with
|
|
# Python 3.8 on macOS. Disabling for all Python 3 until someone
|
|
# can help sort out what's really needed for Windows:
|
|
if sys.version_info.major < 3:
|
|
sys.modules[__name__] = sys.modules['update_checkout']
|
|
|
|
update_checkout.main()
|