diff options
author | Nicholas Car <nicholas.car@surroundaustralia.com> | 2021-07-15 21:43:13 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-15 21:43:13 +1000 |
commit | c389cb78e642daf525512ec84e5350f57f635910 (patch) | |
tree | c583dccff189b7b4069b25446ab617ec747d9ee1 | |
parent | b38ef3fdeb535c8c697ec97a69706db82ef831bf (diff) | |
parent | 56e8445d6465b9a42b68088f8f553171cfd7ee08 (diff) | |
download | rdflib-c389cb78e642daf525512ec84e5350f57f635910.tar.gz |
Merge pull request #1359 from DBastrak/master
Updated film.py
-rw-r--r-- | examples/film.py | 4 |
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() |