Show More
@@ -37,12 +37,13 def list(repo, namespace): | |||
|
37 | 37 | lk = _get(namespace)[1] |
|
38 | 38 | return lk(repo) |
|
39 | 39 | |
|
40 | encode = encoding.fromlocal | |
|
41 | ||
|
40 | 42 | decode = encoding.tolocal |
|
41 | 43 | |
|
42 | 44 | def encodekeys(keys): |
|
43 | 45 | """encode the content of a pushkey namespace for exchange over the wire""" |
|
44 | enc = encoding.fromlocal | |
|
45 | return '\n'.join(['%s\t%s' % (enc(k), enc(v)) for k, v in keys]) | |
|
46 | return '\n'.join(['%s\t%s' % (encode(k), encode(v)) for k, v in keys]) | |
|
46 | 47 | |
|
47 | 48 | def decodekeys(data): |
|
48 | 49 | """decode the content of a pushkey namespace from exchange over the wire""" |
General Comments 0
You need to be logged in to leave comments.
Login now