Commit 04f3d6e8 authored by Samuel Trégouët's avatar Samuel Trégouët
Browse files

[py3k] ur'' is gone

parent 8e46ed1a0b8a
......@@ -136,7 +136,7 @@ def _copyfrom_buffer_convert_string(value, **opts):
:encoding: resulting string encoding (default: utf-8)
'''
encoding = opts.get('encoding','utf-8')
escape_chars = ((u'\\', ur'\\'), (u'\t', u'\\t'), (u'\r', u'\\r'),
escape_chars = ((u'\\', u'\\\\'), (u'\t', u'\\t'), (u'\r', u'\\r'),
(u'\n', u'\\n'))
for char, replace in escape_chars:
value = value.replace(char, replace)
......
......@@ -91,9 +91,9 @@ class IDownloadableTC(CubicWebTC):
def test_header_with_space_and_comma(self):
with self.admin_access.web_request() as req:
self.create_user(req, login=ur'c " l\ a', password='babar')
self.create_user(req, login=u'c " l\\ a', password='babar')
req.cnx.commit()
with self.new_access(ur'c " l\ a').web_request() as req:
with self.new_access(u'c " l\\ a').web_request() as req:
req.form['vid'] = 'download'
req.form['eid'] = str(req.user.eid)
data = self.ctrl_publish(req,'view')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment