X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=blobdiff_plain;f=htsworkflow%2Futil%2Fvalidate.py;fp=htsworkflow%2Futil%2Fvalidate.py;h=93842c7ad4e7fe4e4d3c28c9948c6ccd6a68845e;hp=959acc281db0b951d0d0dc2dec17023eddc9be47;hb=53ebb47e86e81ce349d4ef4e16aef94be93486ea;hpb=4262586d10cc0cc227390873b301b55244204c11 diff --git a/htsworkflow/util/validate.py b/htsworkflow/util/validate.py index 959acc2..93842c7 100644 --- a/htsworkflow/util/validate.py +++ b/htsworkflow/util/validate.py @@ -19,7 +19,7 @@ def main(cmdline=None): opts.uniform_lengths, opts.max_errors) if errors > 0: - print "%s failed validation" % (filename,) + print("%s failed validation" % (filename,)) error_happened = True stream.close() @@ -110,7 +110,7 @@ def validate_fastq(stream, format='phred33', uniform_length=False, max_errors=No def validate_re(pattern, line, line_number, errmsg): if pattern.match(line) is None: - print errmsg, "[%d]: %s" % (line_number, line) + print(errmsg, "[%d]: %s" % (line_number, line)) return 1 else: return 0 @@ -123,7 +123,7 @@ def validate_length(line, line_length, line_number, errmsg): if line_length is None: line_length = len(line) elif len(line) != line_length: - print errmsg, "%d: %s" %(line_number, line) + print(errmsg, "%d: %s" %(line_number, line)) error_count = 1 return line_length, error_count