aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()