Use ''.splitlines() instead of split('\n')
[htsworkflow.git] / htsworkflow / util / hashfile.py
index c6cc0f9c0ff68fea380a80d783858052781bad61..5382865bd8757676d939df1e75f19e5801c3df15 100644 (file)
@@ -31,7 +31,7 @@ def make_md5sum_unix(filename, md5_cache):
     if retcode != 0:
         logger.error("Trouble with md5sum for {0}".format(filename))
         return None
-    lines = stdin.split(os.linesep)
+    lines = stdin.splitlines()
     md5sum = parse_md5sum_line(lines, filename)
     if md5sum is not None:
         logger.debug("Caching sum in {0}".format(md5_cache))