[Python-modules-commits] [python-pyld] 194/276: Use ascii_letters.

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Oct 8 23:48:10 UTC 2014


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to branch master
in repository python-pyld.

commit f5ba9e0a5b6dd70ddce2f8538d6108d561a40791
Author: Dave Longley <dlongley at digitalbazaar.com>
Date:   Tue Sep 10 15:10:08 2013 -0400

    Use ascii_letters.
---
 lib/pyld/jsonld.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
index 3c75c14..daea33c 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -3977,7 +3977,7 @@ class JsonLdProcessor:
                 if (not all([pieces.scheme, pieces.netloc]) or
                     pieces.scheme not in ['http', 'https'] or
                     set(pieces.netloc) > set(
-                        string.letters + string.digits + '-.:')):
+                        string.ascii_letters + string.digits + '-.:')):
                     raise JsonLdError(
                         'Malformed or unsupported URL.',
                         'jsonld.InvalidUrl', {'url': url},

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pyld.git



More information about the Python-modules-commits mailing list