MCPcopy Create free account
hub / github.com/Distrotech/reportlab / process

Function process

tools/pythonpoint/pythonpoint.py:973–984  ·  view source on GitHub ↗

Process one PythonPoint source file.

(datafile, notes=0, handout=0, printout=0, cols=0, verbose=0, outDir=None, datafilename=None, fx=1)

Source from the content-addressed store, hash-verified

971 return _pyRXP_Parser.parse(rawdata)
972
973def process(datafile, notes=0, handout=0, printout=0, cols=0, verbose=0, outDir=None, datafilename=None, fx=1):
974 "Process one PythonPoint source file."
975 if not hasattr(datafile, "read"):
976 if not datafilename: datafilename = datafile
977 datafile = open(datafile)
978 else:
979 if not datafilename: datafilename = "PseudoFile"
980 rawdata = datafile.read()
981
982 #if pyRXP present, use it to check and get line numbers for errors...
983 validate(rawdata)
984 return _process(rawdata, datafilename, notes, handout, printout, cols, verbose, outDir, fx)
985
986def _process(rawdata, datafilename, notes=0, handout=0, printout=0, cols=0, verbose=0, outDir=None, fx=1):
987 #print 'inner process fx=%d' % fx

Callers 1

mainFunction · 0.85

Calls 2

validateFunction · 0.85
_processFunction · 0.85

Tested by

no test coverage detected