Show More
@@ -522,9 +522,9 b' def system(cmd, environ={}, cwd=None, on' | |||||
522 | exception.''' |
|
522 | exception.''' | |
523 | def py2shell(val): |
|
523 | def py2shell(val): | |
524 | 'convert python object into string that is useful to shell' |
|
524 | 'convert python object into string that is useful to shell' | |
525 |
if val i |
|
525 | if val is None or val is False: | |
526 | return '0' |
|
526 | return '0' | |
527 |
if val |
|
527 | if val is True: | |
528 | return '1' |
|
528 | return '1' | |
529 | return str(val) |
|
529 | return str(val) | |
530 | oldenv = {} |
|
530 | oldenv = {} |
General Comments 0
You need to be logged in to leave comments.
Login now