From 9376908cbd2b2bce2e48741710c2c768114d53b7 Mon Sep 17 00:00:00 2001 From: nate Date: Sun, 3 Dec 2017 20:05:04 -0800 Subject: [PATCH] minor cleanup --- ttbp/ttbp.py | 2 +- ttbp/util.py | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ttbp/ttbp.py b/ttbp/ttbp.py index fdd5b6b..972e444 100644 --- a/ttbp/ttbp.py +++ b/ttbp/ttbp.py @@ -43,7 +43,7 @@ import tempfile import subprocess import time import json -from email.mime.text import MIMEText; +from email.mime.text import MIMEText import datetime import inflect diff --git a/ttbp/util.py b/ttbp/util.py index 567fa8c..85707b5 100644 --- a/ttbp/util.py +++ b/ttbp/util.py @@ -212,8 +212,4 @@ def input_yn(query): while ans not in ["y", "n"]: ans = raw_input("'y' or 'n' please: ") - if ans == "y": - return True - else: - return False - + return ans == "y"