summaryrefslogtreecommitdiff
path: root/rdflib/tools
diff options
context:
space:
mode:
authorhsolbrig <solbrig@jhu.edu>2020-05-26 21:20:51 -0500
committerhsolbrig <solbrig@jhu.edu>2020-05-26 21:20:51 -0500
commit9f38b0bd0dfb6f0bbdabea979479a1dc6acc9e49 (patch)
tree69cc1e86ba4a23e60440746f9c0d62a31c3fa6d4 /rdflib/tools
parent1a98acbaefa938aafe9ca7f6ec179e4a3bc1d991 (diff)
downloadrdflib-9f38b0bd0dfb6f0bbdabea979479a1dc6acc9e49.tar.gz
Change to absolute imports to attempt to fix a Travis issue
Fix a few odd's and ends warnings as well
Diffstat (limited to 'rdflib/tools')
-rw-r--r--rdflib/tools/csv2rdf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rdflib/tools/csv2rdf.py b/rdflib/tools/csv2rdf.py
index 812ffadc..7034f1a7 100644
--- a/rdflib/tools/csv2rdf.py
+++ b/rdflib/tools/csv2rdf.py
@@ -102,7 +102,7 @@ def toProperty(label):
firstNm => firstNm
"""
- label = re.sub("[^\w]", " ", label)
+ label = re.sub(r"[^\w]", " ", label)
label = re.sub("([a-z])([A-Z])", "\\1 \\2", label)
label = label.split(" ")
return "".join([label[0].lower()] + [x.capitalize() for x in label[1:]])