From c7720f6c857f5f5225182ea3ccd533c6e428a2d1 Mon Sep 17 00:00:00 2001 From: Daniel Schulte Date: Sun, 18 Mar 2018 17:14:23 +0100 Subject: [PATCH] Add application version and remove some leftover comments/whitespace --- printer.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/printer.py b/printer.py index f2d7750..fe84b09 100755 --- a/printer.py +++ b/printer.py @@ -6,6 +6,8 @@ TODO: Figure out if/when to show unshortened URLs in links contained in Tweets. TODO: Figure out bimap mode so stuff that is not latin-1 encodable can still be printed. """ +__version__ = "0.0.1" + import argparse import datetime import html @@ -182,13 +184,6 @@ class StreamListener(tweepy.StreamListener): if status_code == 420: return False -""" ------------------------------------------------- -@handle (name) xxxx-xx-xx xx:xx:xx -RT by @handle (name) xxxx-xx-xx xx:xx:xx ----------------------------- -""" - def check_rate_limits(api): rate_limits = api.rate_limit_status() @@ -203,7 +198,6 @@ def check_rate_limits(api): def main(): - parser = argparse.ArgumentParser(description="Prints tweets to a thermal printer") parser.add_argument("-p", "--printer", type=str, metavar="printer", help="Which thermal printer to use (e.g. /dev/usb/lp1). If empty nothing will be printed.")