Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/modules/animsys_refactor.py
| Context not available. | |||||
| def drepr(string): | def drepr(string): | ||||
| # is there a less crappy way to do this in python?, re.escape also escapes | # is there a less crappy way to do this in python?, re.escape also escapes | ||||
| # single quotes strings so cant use it. | # single quotes strings so can't use it. | ||||
| return '"%s"' % repr(string)[1:-1].replace("\"", "\\\"").replace("\\'", "'") | return '"%s"' % repr(string)[1:-1].replace("\"", "\\\"").replace("\\'", "'") | ||||
| Context not available. | |||||