Show More
@@ -905,7 +905,7 b' class Test(unittest.TestCase):' | |||
|
905 | 905 | |
|
906 | 906 | # Only restore environment variable names that the shell allows |
|
907 | 907 | # us to export. |
|
908 | name_regex = re.compile('[a-zA-Z][a-zA-Z0-9_]*') | |
|
908 | name_regex = re.compile('^[a-zA-Z][a-zA-Z0-9_]*$') | |
|
909 | 909 | |
|
910 | 910 | with open(scriptpath, 'w') as envf: |
|
911 | 911 | for name, value in os.environ.items(): |
General Comments 0
You need to be logged in to leave comments.
Login now