We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 568883a commit c17acecCopy full SHA for c17acec
image/bin/my_init
@@ -22,7 +22,7 @@ LOG_LEVEL_WARN = 1
22
LOG_LEVEL_INFO = 2
23
LOG_LEVEL_DEBUG = 3
24
25
-SHENV_NAME_WHITELIST_REGEX = re.compile('\W')
+SHENV_NAME_WHITELIST_REGEX = re.compile(r'\W')
26
27
log_level = None
28
@@ -93,7 +93,7 @@ def import_envvars(clear_existing_environment=True, override_existing_environmen
93
# Text files often end with a trailing newline, which we
94
# don't want to include in the env variable value. See
95
# https://github.com/phusion/baseimage-docker/pull/49
96
- value = re.sub('\n\Z', '', f.read())
+ value = re.sub('\n\\Z', '', f.read())
97
new_env[name] = value
98
if clear_existing_environment:
99
os.environ.clear()
0 commit comments