]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - src/allmydata/scripts/tahoe_put.py
Correct stringutils->encodingutil patch to be the newer version, rather than the...
[tahoe-lafs/tahoe-lafs.git] / src / allmydata / scripts / tahoe_put.py
index d646110ed85de75a8816a8c0a0007e798648cf89..eb578becbbd8ea2ca868c6bc531d9b9587a54cfd 100644 (file)
@@ -1,11 +1,11 @@
 
+import os
 from cStringIO import StringIO
 import urllib
 from allmydata.scripts.common_http import do_http, format_http_success, format_http_error
 from allmydata.scripts.common import get_alias, DEFAULT_ALIAS, escape_path, \
                                      UnknownAliasError
 from allmydata.util.encodingutil import quote_output
-from allmydata.util.fileutil import open_expanduser
 
 def put(options):
     """
@@ -65,7 +65,7 @@ def put(options):
     if mutable:
         url += "?mutable=true"
     if from_file:
-        infileobj = open_expanduser(from_file, "rb")
+        infileobj = open(os.path.expanduser(from_file), "rb")
     else:
         # do_http() can't use stdin directly: for one thing, we need a
         # Content-Length field. So we currently must copy it.