Changeset cb777ad in trunk
- Timestamp:
- 2010-11-10T00:53:36Z (15 years ago)
- Branches:
- master
- Children:
- 59dcd50
- Parents:
- 01a5365
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/allmydata/scripts/tahoe_mv.py ¶
r01a5365 rcb777ad 29 29 from_url += "/" + escape_path(from_path) 30 30 # figure out the source cap 31 data = urllib.urlopen(from_url + "?t=json").read() 31 resp = do_http("GET", from_url + "?t=json") 32 if not re.search(r'^2\d\d$', str(resp.status)): 33 print >>stderr, format_http_error("Error", resp) 34 return 1 35 data = resp.read() 32 36 nodetype, attrs = simplejson.loads(data) 33 37 cap = to_str(attrs.get("rw_uri") or attrs["ro_uri"])
Note: See TracChangeset
for help on using the changeset viewer.