Project

General

Profile

« Previous | Next » 

Revision 2502

strings.py: Added repr_no_u()

View differences:

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