##// END OF EJS Templates
%set_env should ensure environment variables are bytes on Python 2...
Thomas Kluyver -
Show More
@@ -413,7 +413,7 class OSMagics(Magics):
413 413 err = "refusing to set env var with whitespace: '{0}'"
414 414 err = err.format(val)
415 415 raise UsageError(err)
416 os.environ[var] = val
416 os.environ[var] = py3compat.cast_bytes_py2(val)
417 417 print('env: {0}={1}'.format(var,val))
418 418
419 419 @line_magic
General Comments 0
You need to be logged in to leave comments. Login now