fix some of stijns perl-isms
This commit is contained in:
parent
800d7a04b0
commit
2f43fb8d3f
1 changed files with 3 additions and 3 deletions
|
|
@ -618,10 +618,10 @@ def _ydecode_file(file, outfile)
|
||||||
totalsize = $8.to_i
|
totalsize = $8.to_i
|
||||||
filename = $10
|
filename = $10
|
||||||
print "found beginning"
|
print "found beginning"
|
||||||
if part
|
if part != nil
|
||||||
print " of part #{part}"
|
print " of part #{part}"
|
||||||
end
|
end
|
||||||
if total
|
if total != nil
|
||||||
print " of #{total}"
|
print " of #{total}"
|
||||||
end
|
end
|
||||||
print ", linesize = #{linesize}, size = #{totalsize}, filename = #{filename}\n"
|
print ", linesize = #{linesize}, size = #{totalsize}, filename = #{filename}\n"
|
||||||
|
|
@ -653,7 +653,7 @@ def _ydecode_file(file, outfile)
|
||||||
if size != bytes
|
if size != bytes
|
||||||
print "part size mismatch, is #{bytes}, should be #{size}\n"
|
print "part size mismatch, is #{bytes}, should be #{size}\n"
|
||||||
end
|
end
|
||||||
if !part
|
if part == nil
|
||||||
return mode, filename
|
return mode, filename
|
||||||
end
|
end
|
||||||
total += bytes
|
total += bytes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue