From 20814d478ee7609e988ac2655d2b61c6b68c2f90 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 26 Feb 2006 05:39:21 +0000 Subject: Fix cache.metadata.database so that it correctly removes the newline character from the end of the line when parsing flat_hash entries. svn path=/main/trunk/; revision=2786 --- pym/cache/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/cache/metadata.py b/pym/cache/metadata.py index 5e5f0bde7..0fd11cda8 100644 --- a/pym/cache/metadata.py +++ b/pym/cache/metadata.py @@ -50,7 +50,7 @@ class database(flat_hash.database): if not c.isalpha(): if c == "=" and idx > 0: hashed = True - d[line[:idx]] = line[idx + 1:] + d[line[:idx]] = line[idx + 1:-1] elif c == "_" or c.isdigit(): continue break -- cgit v1.2.3-1-g7c22