command-line: fix a few bugs in the "execute this python file" way to execute rm

This commit is contained in:
Zooko O'Whielacronx 2007-08-17 14:17:31 -07:00
parent a4e6288e33
commit 594912e334

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python
import re, socket, sys
import re, socket
NODEURL_RE=re.compile("http://([^:]*)(:([1-9][0-9]*))?")
@ -71,7 +71,7 @@ def main():
vdrive_pathname = args[0]
return put(options.nodeurl, options.vdrive, vdrive_pathname, local_file)
return rm(options.nodeurl, options.vdrive, vdrive_pathname, 0)
if __name__ == '__main__':
main()