File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -689,25 +689,24 @@ def _normalize_filenames(self):
689
689
690
690
[x] always use forward slashes to be crossplatform
691
691
(diff/patch were born as a unix utility after all)
692
-
692
+
693
693
return None
694
694
"""
695
695
if debugmode :
696
696
debug ("normalize filenames" )
697
697
for i ,p in enumerate (self .items ):
698
698
if debugmode :
699
- debug (" patch type = " + p .type )
700
- debug (" source = " + p .source )
701
- debug (" target = " + p .target )
699
+ debug (" patch type = %s" % p .type )
700
+ debug (" source = %s" % p .source )
701
+ debug (" target = %s" % p .target )
702
702
if p .type in (HG , GIT ):
703
- # TODO: figure out how to deal with /dev/null entries
704
703
debug ("stripping a/ and b/ prefixes" )
705
- if p .source != '/dev/null' :
704
+ if p .source != b '/dev/null' :
706
705
if not p .source .startswith (b"a/" ):
707
706
warning ("invalid source filename" )
708
707
else :
709
708
p .source = p .source [2 :]
710
- if p .target != '/dev/null' :
709
+ if p .target != b '/dev/null' :
711
710
if not p .target .startswith (b"b/" ):
712
711
warning ("invalid target filename" )
713
712
else :
You can’t perform that action at this time.
0 commit comments