def make_key_url(self, key):
if type(key) is bytes:<EOL><INDENT>key = key.decode('<STR_LIT:utf-8>')<EOL><DEDENT>buf = io.StringIO()<EOL>buf.write(u'<STR_LIT>')<EOL>if not key.startswith(u'<STR_LIT:/>'):<EOL><INDENT>buf.write(u'<STR_LIT:/>')<EOL><DEDENT>buf.write(key)<EOL>return self.make_url(buf.getvalue())<EOL>
Gets a URL for a key.