def createParser(filename, real_filename=None, tags=None):
 if (not tags):
  tags = []
 stream = FileInputStream(filename, real_filename, tags=tags)
 return guessParser(stream)

def createParser ( filename , real_filename = None , tags = None ) : if ( not tags ) : tags = [ ] stream = FileInputStream ( filename , real_filename , tags = tags ) return guessParser ( stream )
create a parser from a file or returns none on error .