From 7974593b12ed9fd0983b7723bfd01152817f6579 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Jun 18 2014 01:51:53 +0000 Subject: split() on all whitespace removing the need for strip() --- diff --git a/src/centpkg/__init__.py b/src/centpkg/__init__.py index f023d62..36a80e5 100644 --- a/src/centpkg/__init__.py +++ b/src/centpkg/__init__.py @@ -116,7 +116,7 @@ class Commands(pyrpkg.Commands): # This strip / split is kind a ugly, but checksums shouldn't have # two spaces in them. sources file might need more structure in the # future - csum, file = map(str.strip, archive.strip().split(' ', 1)) + csum, file = archive.strip().split(None, 1) except ValueError: raise pyrpkg.rpkgError('Malformed sources file.') # See if we already have a valid copy downloaded