diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3/reformat_sysconfig.py')
| -rw-r--r-- | meta/recipes-devtools/python/python3/reformat_sysconfig.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/meta/recipes-devtools/python/python3/reformat_sysconfig.py b/meta/recipes-devtools/python/python3/reformat_sysconfig.py deleted file mode 100644 index 5e2b12879d..0000000000 --- a/meta/recipes-devtools/python/python3/reformat_sysconfig.py +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | #! /usr/bin/env python3 | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: MIT | ||
| 4 | # | ||
| 5 | # Copyright 2019 by Garmin Ltd. or its subsidiaries | ||
| 6 | # | ||
| 7 | # A script to reformat python sysconfig | ||
| 8 | |||
| 9 | import sys | ||
| 10 | import pprint | ||
| 11 | l = {} | ||
| 12 | g = {} | ||
| 13 | with open(sys.argv[1], 'r') as f: | ||
| 14 | exec(f.read(), g, l) | ||
| 15 | |||
| 16 | with open(sys.argv[1], 'w') as f: | ||
| 17 | for k in sorted(l.keys()): | ||
| 18 | f.write('%s = ' % k) | ||
| 19 | pprint.pprint(l[k], stream=f, width=1) | ||
| 20 | f.write('\n') | ||
| 21 | |||
