diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-15 19:39:12 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-15 19:39:12 +0000 |
commit | f2e29a7a546cbe916e08d13233c9353ca7410741 (patch) | |
tree | b302bb4e3e1d076cf4ca28b3f686a9fc152916f9 /printing | |
parent | 343b4fdcd93bcf42fc68597ca93d0d04568eda41 (diff) | |
download | chromium_src-f2e29a7a546cbe916e08d13233c9353ca7410741.zip chromium_src-f2e29a7a546cbe916e08d13233c9353ca7410741.tar.gz chromium_src-f2e29a7a546cbe916e08d13233c9353ca7410741.tar.bz2 |
cups-helper: split on newlines in cups helper
We want to split on both spaces and newlines, not just
spaces, for the case when cups-config does have proper output.
Speculative fix for the bug, untested on a system it affects.
BUG=92772
Review URL: http://codereview.chromium.org/7647025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96811 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rwxr-xr-x | printing/cups_config_helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/printing/cups_config_helper.py b/printing/cups_config_helper.py index c3ebbdf..3c1dd41 100755 --- a/printing/cups_config_helper.py +++ b/printing/cups_config_helper.py @@ -32,7 +32,7 @@ def run_cups_config(mode): flags = cups.communicate()[0].strip() flags_subset = [] - for flag in flags.split(' '): + for flag in flags.split(): flag_mode = None if flag.startswith('-l'): flag_mode = '--libs' |