#NEWLINE# def _re_pattern_pprint( obj , p , cycle ) : #NEWLINE# #INDENT# 'The pprint function for regular expression patterns.' #NEWLINE# p . text ( 're.compile(' ) #NEWLINE# pattern = repr ( obj . pattern ) #NEWLINE# if ( pattern [ : 1 ] in 'uU' ) : #NEWLINE# #INDENT# pattern = pattern [ 1 : ] #NEWLINE# prefix = 'ur' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# prefix = 'r' #NEWLINE# #UNINDENT# pattern = ( prefix + pattern . replace ( '\\\\' , '\\' ) ) #NEWLINE# p . text ( pattern ) #NEWLINE# if obj . flags : #NEWLINE# #INDENT# p . text ( ',' ) #NEWLINE# p . breakable ( ) #NEWLINE# done_one = False #NEWLINE# for flag in ( 'TEMPLATE' , 'IGNORECASE' , 'LOCALE' , 'MULTILINE' , 'DOTALL' , 'UNICODE' , 'VERBOSE' , 'DEBUG' ) : #NEWLINE# #INDENT# if ( obj . flags & getattr ( re , flag ) ) : #NEWLINE# #INDENT# if done_one : #NEWLINE# #INDENT# p . text ( '|' ) #NEWLINE# #UNINDENT# p . text ( ( 're.' + flag ) ) #NEWLINE# done_one = True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# p . text ( ')' )