code width is now consistent

unused imports removed
This commit is contained in:
Gustavo Zambonin
2015-10-15 16:58:17 -03:00
parent 40d6be8bea
commit 91c384d36b
9 changed files with 52 additions and 30 deletions

View File

@@ -1,4 +1,3 @@
import os
import sys
import locale
import logging
@@ -6,7 +5,6 @@ import logging
import praw
import praw.errors
import tornado
import requests
from requests import exceptions
from . import config
@@ -28,6 +26,7 @@ _logger = logging.getLogger(__name__)
# ptrace_scope to 0 in /etc/sysctl.d/10-ptrace.conf.
# http://blog.mellenthin.de/archives/2010/10/18/gdb-attach-fails
def main():
"Main entry point"
@@ -77,7 +76,8 @@ def main():
subreddit = args.subreddit or 'front'
page = SubredditPage(stdscr, reddit, oauth, subreddit)
page.loop()
except (exceptions.RequestException, praw.errors.PRAWException, RTVError) as e:
except (exceptions.RequestException, praw.errors.PRAWException,
RTVError) as e:
_logger.exception(e)
print('{}: {}'.format(type(e).__name__, e))
except KeyboardInterrupt: