Add application version and remove some leftover comments/whitespace
This commit is contained in:
parent
7a6d6e24c6
commit
c7720f6c85
10
printer.py
10
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.")
|
||||
|
|
Loading…
Reference in New Issue