summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Car <nicholas.car@surroundaustralia.com>2021-07-15 21:43:13 +1000
committerGitHub <noreply@github.com>2021-07-15 21:43:13 +1000
commitc389cb78e642daf525512ec84e5350f57f635910 (patch)
treec583dccff189b7b4069b25446ab617ec747d9ee1
parentb38ef3fdeb535c8c697ec97a69706db82ef831bf (diff)
parent56e8445d6465b9a42b68088f8f553171cfd7ee08 (diff)
downloadrdflib-c389cb78e642daf525512ec84e5350f57f635910.tar.gz
Merge pull request #1359 from DBastrak/master
Updated film.py
-rw-r--r--examples/film.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/film.py b/examples/film.py
index a23a3c0f..5c3dfc72 100644
--- a/examples/film.py
+++ b/examples/film.py
@@ -134,11 +134,11 @@ def main(argv=None):
date = None
while not date:
try:
- i = eval(input("Review date (YYYY-MM-DD): "))
+ i = eval('"{}"'.format(input("Review date (YYYY-MM-DD): ")))
date = datetime.datetime(*time.strptime(i, "%Y-%m-%d")[:6])
except:
date = None
- comment = eval(input("Comment: "))
+ comment = eval('"{}"'.format(input("Comment: ")))
s.new_review(movie, date, rating, comment)
else:
help()