Browse Source

add support for escaping newlines...

print which character we don't know how to escape to make adding
new supoprt easier..

[git-p4: depot-paths = "//depot/": change = 1671]
main
John-Mark Gurney 12 years ago
parent
commit
558d9e02ae
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      cdrtoc.py

+ 4
- 1
cdrtoc.py View File

@@ -25,8 +25,11 @@ def decodestrend(i, pos):
elif c in string.digits:
r.append(unichr(int(i[bspos + 1:bspos + 4], 8)))
pos = bspos + 4
elif c == 'n':
r.append('\n')
pos = bspos + 2
else:
raise ValueError('unknown escape char')
raise ValueError('unknown escape char: %s' % `c`)
else:
r.append(i[pos:dqpos])
break


Loading…
Cancel
Save