~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to madgraph/various/process_checks.py

mwrge with 2.7.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
387
387
        else:
388
388
            energy = options['energy']
389
389
            events = options['events']
390
 
            to_skip = 0
 
390
            to_skip = options['skip_evt']
391
391
            
392
392
        if not (isinstance(process, base_objects.Process) and \
393
393
                isinstance(energy, (float,int))):
824
824
        # I change it to be the list of line.
825
825
        if isinstance(output,(file,io.TextIOWrapper)) or isinstance(output,list):
826
826
            text=output
827
 
        elif isinstance(output,(str)) or (six.PY2 and isinstance(output, unicode)):
 
827
        elif isinstance(output,(str)) or (six.PY2 and isinstance(output, six.text_type)):
828
828
            text=output.split('\n')
829
829
        elif isinstance(output, bytes):
830
830
            text=output.decode().split('\n')