Remove normpath

This commit is contained in:
jacob
2018-10-10 14:04:21 +08:00
parent bd6dbd9090
commit 32a1db3622
3 changed files with 165 additions and 4 deletions

View File

@@ -1,4 +1,3 @@
import os
from collections import defaultdict, namedtuple
from sanic.constants import HTTP_METHODS
@@ -58,7 +57,6 @@ class Blueprint:
if bp.url_prefix is None:
bp.url_prefix = ''
bp.url_prefix = url_prefix + bp.url_prefix
bp.url_prefix = os.path.normpath(bp.url_prefix)
bps.append(bp)
return bps