diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-21 08:28:16 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-21 08:28:16 +0100 |
commit | 3f77d912bab568d0268c5af613641c88a0ab0351 (patch) | |
tree | 8ad23db0178665c78c1a84f5727b90e51e81fa26 /src/icc.py | |
parent | bump version (diff) | |
download | blueshift-3f77d912bab568d0268c5af613641c88a0ab0351.tar.gz blueshift-3f77d912bab568d0268c5af613641c88a0ab0351.tar.bz2 blueshift-3f77d912bab568d0268c5af613641c88a0ab0351.tar.xz |
Fix _ICC_PROFILE support
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/icc.py')
-rw-r--r-- | src/icc.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -19,6 +19,10 @@ from subprocess import Popen, PIPE from curve import * +# /usr/libexec +LIBEXECDIR = 'bin' + + def load_icc(pathname): ''' @@ -58,9 +62,9 @@ def get_current_icc_raw(): for line in lines: if len(line) == 0: continue - (s, m, p) = lines.split(': ') + (s, m, p) = line.split(': ') p = bytes([int(p[i : i + 2], 16) for i in range(0, len(p), 2)]) - rc.append((s, m, p)) + rc.append((int(s), int(m), p)) return rc |