diff options
author | 2013-07-16 01:01:42 +0200 | |
---|---|---|
committer | 2013-07-16 01:01:42 +0200 | |
commit | 481524dba64d0bf5eccedd9aeb5b221438d7c7f9 (patch) | |
tree | bc02d777092e32c94ce94b4d2899fb7dbe7fbcc8 | |
parent | g_elpa/elpa_db: filter description variable (diff) | |
download | gs-elpa-481524dba64d0bf5eccedd9aeb5b221438d7c7f9.tar.gz gs-elpa-481524dba64d0bf5eccedd9aeb5b221438d7c7f9.tar.bz2 gs-elpa-481524dba64d0bf5eccedd9aeb5b221438d7c7f9.zip |
g_elpa/elpa_db: fix description filtering
-rw-r--r-- | g_elpa/elpa_db.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/g_elpa/elpa_db.py b/g_elpa/elpa_db.py index f8305ac..8a83bbc 100644 --- a/g_elpa/elpa_db.py +++ b/g_elpa/elpa_db.py @@ -57,7 +57,8 @@ class ElpaDB(PackageDB): source_type = desc[3].value() allowed_ords = set(range(ord('a'), ord('z'))) | set(range(ord('A'), ord('Z'))) | \ - set(range(ord('0'), ord('9'))) | set(list(map(ord,['+', '_', '-']))) + set(range(ord('0'), ord('9'))) | set(list(map(ord, + ['+', '_', '-', ' ', '.', '(', ')', '[', ']', '{', '}', ',']))) description = "".join([x for x in desc[2] if ord(x) in allowed_ords]) deps = desc[1] |