File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -244,16 +244,15 @@ def init(repo):
244
244
# Add Jinja2 filters commonly used in this repository
245
245
if 'Windows' in platform .platform ():
246
246
def windowsify (path , escape_level ):
247
- path = normpath (path )
248
247
escaped = "\\ " * (2 ** escape_level )
249
248
return path .replace ("\\ " , escaped )
250
249
def posixify (path ):
251
- return normpath ( path ) .replace ("\\ " , "/" )
250
+ return path .replace ("\\ " , "/" )
252
251
else :
253
252
def windowsify (path , escape_level ):
254
- return normpath ( path )
253
+ return path
255
254
def posixify (path ):
256
- return normpath ( path )
255
+ return path
257
256
repo .add_filter ("modm.windowsify" , windowsify )
258
257
repo .add_filter ("modm.posixify" , posixify )
259
258
repo .add_filter ("modm.ord" , lambda letter : ord (letter [0 ].lower ()) - ord ("a" ))
You can’t perform that action at this time.
0 commit comments