This:
On Jul 10, 3:49 pm, Wooble <
geoffsp...@gmail.com> wrote:
> It sounds like a bug in the Windows version; the /'s are being
> converted to \'s without escaping them.
I was able to reproduce his problem using the Windows version of
dev_appserver.py.
I suspect this section, starting at line 2393 in tools/
dev_appserver.py
regex = url_map.url
path = url_map.GetHandler()
if handler_type == appinfo.STATIC_DIR:
if regex[-1] == r'/':
regex = regex[:-1]
if path[-1] == os.path.sep:
path = path[:-1]
regex = '/'.join((re.escape(regex), '(.*)'))
if os.path.sep == '\\':
backref = r'\\1'
else:
backref = r'\1'
path = os.path.normpath(path) + os.path.sep + backref
url_matcher.AddURL(regex,
dispatcher,
path,
requires_login, admin_only)