Show More
@@ -413,7 +413,7 b' class OSMagics(Magics):' | |||||
413 | err = "refusing to set env var with whitespace: '{0}'" |
|
413 | err = "refusing to set env var with whitespace: '{0}'" | |
414 | err = err.format(val) |
|
414 | err = err.format(val) | |
415 | raise UsageError(err) |
|
415 | raise UsageError(err) | |
416 | os.environ[var] = py3compat.cast_bytes_py2(val) |
|
416 | os.environ[py3compat.cast_bytes_py2(var)] = py3compat.cast_bytes_py2(val) | |
417 | print('env: {0}={1}'.format(var,val)) |
|
417 | print('env: {0}={1}'.format(var,val)) | |
418 |
|
418 | |||
419 | @line_magic |
|
419 | @line_magic |
General Comments 0
You need to be logged in to leave comments.
Login now