Python37 (#12)

* add dist: xenial

* try travis fix with matrix include.

* remove unnecessary elif
This commit is contained in:
Dave Gallant
2018-10-08 22:44:06 -04:00
committed by GitHub
parent a814a290ac
commit 56ab030423
4 changed files with 11 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ def calculate_score(post):
def get_safe_per_page(limit):
if limit < 5:
return 5
elif limit > 40:
if limit > 40:
return 40
return limit

View File

@@ -29,7 +29,7 @@ def get_terminal_width():
def get_vote_color(score):
if score > 0:
return Fore.GREEN + " [+" + str(score) + "] "
elif score < 0:
if score < 0:
return Fore.RED + " [" + str(score) + "] "
return Fore.BLUE + " [" + str(score) + "] "