Created
December 29, 2023 22:13
-
-
Save art-divin/5d44ed29b7af54dd8b437e496f705722 to your computer and use it in GitHub Desktop.
Copy of apple/swift/utils/update-checkout script
This file contains hidden or 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
#!/usr/bin/env python3 | |
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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment