All Samples(8) | Call(6) | Derive(0) | Import(2)
unicode(object='') -> unicode object unicode(string[, encoding[, errors]]) -> unicode object Create a new Unicode object from the given encoded string. encoding defaults to the current default string encoding. errors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'.
src/a/r/argh-0.24.1/argh/io.py argh(Download)
if sys.version_info > (3,0): # Python 3: whatever → unicode return compat.text_type(value) else: # Python 2: handle special cases stream_encoding = getattr(output_file, 'encoding', None) if stream_encoding: if stream_encoding.upper() == 'UTF-8': return compat.text_type(value)
src/a/r/argh-0.24.1/argh/dispatching.py argh(Download)
lambda e: '{0.__class__.__name__}: {0}'.format(e)) errors_file.write(compat.text_type(processor(e))) errors_file.write('\n')
src/a/r/argh-HEAD/argh/io.py argh(Download)
if sys.version_info > (3,0): # Python 3: whatever → unicode return compat.text_type(value) else: # Python 2: handle special cases stream_encoding = getattr(output_file, 'encoding', None) if stream_encoding: if stream_encoding.upper() == 'UTF-8': return compat.text_type(value)
src/a/r/argh-HEAD/argh/dispatching.py argh(Download)
lambda e: '{0.__class__.__name__}: {0}'.format(e)) errors_file.write(compat.text_type(processor(e))) errors_file.write('\n')
src/a/r/argh-0.24.1/argh/interaction.py argh(Download)
~~~~~~~~~~~ """ from argh.compat import text_type from argh.io import safe_input
src/a/r/argh-HEAD/argh/interaction.py argh(Download)
~~~~~~~~~~~ """ from argh.compat import text_type from argh.io import safe_input