summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authort0b3 <thomas.bettler@gmail.com>2020-05-08 19:54:27 +0200
committert0b3 <thomas.bettler@gmail.com>2020-06-22 20:34:26 +0200
commitf69df4252e3a8466c025e34585dac37c7691b47c (patch)
treea8b9546b5e895d9d6d011f39e804d09921f50681 /examples
parent228a8db9b6871f069167b9075eabe9c7027cba0e (diff)
downloadrdflib-f69df4252e3a8466c025e34585dac37c7691b47c.tar.gz
2to3 whole sourcebase
Signed-off-by: t0b3 <thomas.bettler@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/film.py6
-rw-r--r--examples/graph_digest_benchmark.py1
2 files changed, 3 insertions, 4 deletions
diff --git a/examples/film.py b/examples/film.py
index f25d696b..0c566fd3 100644
--- a/examples/film.py
+++ b/examples/film.py
@@ -130,17 +130,17 @@ def main(argv=None):
rating = None
while not rating or (rating > 5 or rating <= 0):
try:
- rating = int(input("Rating (on five): "))
+ rating = int(eval(input("Rating (on five): ")))
except ValueError:
rating = None
date = None
while not date:
try:
- i = input("Review date (YYYY-MM-DD): ")
+ i = eval(input("Review date (YYYY-MM-DD): "))
date = datetime.datetime(*time.strptime(i, "%Y-%m-%d")[:6])
except:
date = None
- comment = input("Comment: ")
+ comment = eval(input("Comment: "))
s.new_review(movie, date, rating, comment)
else:
help()
diff --git a/examples/graph_digest_benchmark.py b/examples/graph_digest_benchmark.py
index f0d0075c..f5bfd02e 100644
--- a/examples/graph_digest_benchmark.py
+++ b/examples/graph_digest_benchmark.py
@@ -5,7 +5,6 @@ This benchmark will produce graph digests for all of the
downloadable ontologies available in Bioportal.
"""
-from __future__ import print_function
from rdflib import Namespace, Graph
from rdflib.compare import to_isomorphic