aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-09-08 11:08:18 +0200
committerJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-09-08 11:08:18 +0200
commit00147c1d07778dfe1ebb4e6f826da9fca4244028 (patch)
treea0d37b0a21d0469bad118e2ff4b5bc029b78f570
parentgs-pypi: fix errors (diff)
downloadg-sorcery-00147c1d07778dfe1ebb4e6f826da9fca4244028.tar.gz
g-sorcery-00147c1d07778dfe1ebb4e6f826da9fca4244028.tar.bz2
g-sorcery-00147c1d07778dfe1ebb4e6f826da9fca4244028.zip
gs_pypi/pypi_db: fix filtering
-rw-r--r--gs_pypi/pypi_db.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gs_pypi/pypi_db.py b/gs_pypi/pypi_db.py
index f982fcd..120a153 100644
--- a/gs_pypi/pypi_db.py
+++ b/gs_pypi/pypi_db.py
@@ -154,12 +154,12 @@ class PypiDBGenerator(DBGenerator):
pkg_db.add_category(category)
#todo: write filter functions
- allowed_ords_pkg = set(range(ord('a'), ord('z'))) | set(range(ord('A'), ord('Z'))) | \
- set(range(ord('0'), ord('9'))) | set(list(map(ord,
+ allowed_ords_pkg = set(range(ord('a'), ord('z') + 1)) | set(range(ord('A'), ord('Z') + 1)) | \
+ set(range(ord('0'), ord('9') + 1)) | set(list(map(ord,
['+', '_', '-'])))
- allowed_ords_desc = set(range(ord('a'), ord('z'))) | set(range(ord('A'), ord('Z'))) | \
- set(range(ord('0'), ord('9'))) | set(list(map(ord,
+ allowed_ords_desc = set(range(ord('a'), ord('z') + 1)) | set(range(ord('A'), ord('Z') + 1)) | \
+ set(range(ord('0'), ord('9') + 1)) | set(list(map(ord,
['+', '_', '-', ' ', '.', '(', ')', '[', ']', '{', '}', ','])))
now = datetime.datetime.now()