Add application version and remove some leftover comments/whitespace

This commit is contained in:
Daniel Schulte 2018-03-18 17:14:23 +01:00
parent 7a6d6e24c6
commit c7720f6c85
1 changed files with 2 additions and 8 deletions

View File

@ -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. TODO: Figure out bimap mode so stuff that is not latin-1 encodable can still be printed.
""" """
__version__ = "0.0.1"
import argparse import argparse
import datetime import datetime
import html import html
@ -182,13 +184,6 @@ class StreamListener(tweepy.StreamListener):
if status_code == 420: if status_code == 420:
return False 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): def check_rate_limits(api):
rate_limits = api.rate_limit_status() rate_limits = api.rate_limit_status()
@ -203,7 +198,6 @@ def check_rate_limits(api):
def main(): def main():
parser = argparse.ArgumentParser(description="Prints tweets to a thermal printer") parser = argparse.ArgumentParser(description="Prints tweets to a thermal printer")
parser.add_argument("-p", "--printer", type=str, metavar="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.") help="Which thermal printer to use (e.g. /dev/usb/lp1). If empty nothing will be printed.")