def get_path_info(environ, charset='utf-8', errors='replace'):
 path = wsgi_get_bytes(environ.get('PATH_INFO', ''))
 return to_unicode(path, charset, errors, allow_none_charset=True)

def get_path_info ( environ , charset = 'utf-8' , errors = 'replace' ) : path = wsgi_get_bytes ( environ . get ( 'PATH_INFO' , '' ) ) return to_unicode ( path , charset , errors , allow_none_charset = True )
returns the path_info from the wsgi environment and properly decodes it .