mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 13:33:09 +00:00
Aliases are Unicode.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
58841cab38
commit
46719a8bcf
@ -1,6 +1,9 @@
|
||||
|
||||
import os.path
|
||||
import codecs
|
||||
|
||||
from allmydata.util.assertutil import precondition
|
||||
|
||||
from allmydata import uri
|
||||
from allmydata.scripts.common_http import do_http, check_http_error
|
||||
from allmydata.scripts.common import get_aliases
|
||||
@ -29,6 +32,7 @@ def add_line_to_aliasfile(aliasfile, alias, cap):
|
||||
def add_alias(options):
|
||||
nodedir = options['node-directory']
|
||||
alias = options.alias
|
||||
precondition(isinstance(alias, unicode), alias=alias)
|
||||
cap = options.cap
|
||||
stdout = options.stdout
|
||||
stderr = options.stderr
|
||||
@ -56,6 +60,7 @@ def create_alias(options):
|
||||
# mkdir+add_alias
|
||||
nodedir = options['node-directory']
|
||||
alias = options.alias
|
||||
precondition(isinstance(alias, unicode), alias=alias)
|
||||
stdout = options.stdout
|
||||
stderr = options.stderr
|
||||
if u":" in alias:
|
||||
|
Loading…
Reference in New Issue
Block a user