#NEWLINE# @ staticmethod #NEWLINE# def _extract_encoded_path_argument( request ) : #NEWLINE# #INDENT# "Get 'path' argument or None.\n\n        Standard Django mechanism for accessing arguments is not used\n        because path is needed in a raw, encoded form. Django would\n        decode it, making it impossible to correctly recognize the\n        query part and to determine if the path contains fragment.\n        " #NEWLINE# request_path_and_args = request . get_full_path ( ) #NEWLINE# assert request_path_and_args . startswith ( request . path ) #NEWLINE# args = request_path_and_args [ len ( request_path_and_args . path ) : ] #NEWLINE# if ( not args . startswith ( '?path=' ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return args [ len ( '?path=' ) : ]