fix unicode issues

This commit is contained in:
Romain Bignon 2011-10-03 20:57:51 +02:00
commit e68ec1d6e5
2 changed files with 6 additions and 6 deletions

View file

@ -71,7 +71,7 @@ class WebContentEdit(ReplApplication):
content.content = u''
data = ''
f.write(data)
paths[path] = content
paths[path.encode('utf-8')] = content
params = ''
editor = os.environ.get('EDITOR', 'vim')
@ -105,7 +105,7 @@ class WebContentEdit(ReplApplication):
errors = CallErrors([])
for content in contents:
path = [path for path, c in paths.iteritems() if c == content][0]
sys.stdout.write('Pushing %s...' % content.id)
sys.stdout.write('Pushing %s...' % content.id.encode('utf-8'))
sys.stdout.flush()
try:
self.do('push_content', content, message, minor=minor, backends=[content.backend]).wait()