Revision 2502
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/strings.py | ||
---|---|---|
56 | 56 |
if not util.is_str(val): val = str(val) |
57 | 57 |
return to_unicode(val) |
58 | 58 |
|
59 |
def repr_no_u(value): |
|
60 |
'''Like built-in repr() but removes the "u" in `u'...'`''' |
|
61 |
return remove_prefix('u', repr(value)) |
|
62 |
|
|
59 | 63 |
##### Line endings |
60 | 64 |
|
61 | 65 |
def extract_line_ending(line): |
Also available in: Unified diff
strings.py: Added repr_no_u()