#NEWLINE# def get_wildcards( self , s ) : #NEWLINE# #INDENT# backslash = False #NEWLINE# i = 0 #NEWLINE# chars = [ ] #NEWLINE# for c in chars : #NEWLINE# #INDENT# if backslash : #NEWLINE# #INDENT# backslash = False #NEWLINE# chars . append ( c ) #NEWLINE# continue #NEWLINE# #UNINDENT# i += 1 #NEWLINE# if ( c == '\\' ) : #NEWLINE# #INDENT# backslash = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( c == '*' ) : #NEWLINE# #INDENT# chars . append ( self . Asterisk ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( c == '?' ) : #NEWLINE# #INDENT# chars . append ( self . QuestionMark ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# chars . append ( c ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# if backslash : #NEWLINE# #INDENT# chars . append ( '\\' ) #NEWLINE# #UNINDENT# return chars