pep8: Fix E111 violations

This commit is contained in:
AZtheAsian 2016-11-30 22:20:27 -07:00 committed by Tim Abbott
parent fad4fbc733
commit 73bd3572cf
3 changed files with 5 additions and 5 deletions

View file

@ -98,10 +98,10 @@ try:
access_token_key = config.get('twitter', 'access_token_key') access_token_key = config.get('twitter', 'access_token_key')
access_token_secret = config.get('twitter', 'access_token_secret') access_token_secret = config.get('twitter', 'access_token_secret')
except (six.moves.configparser.NoSectionError, six.moves.configparser.NoOptionError): except (six.moves.configparser.NoSectionError, six.moves.configparser.NoOptionError):
parser.error("Please provide a ~/.zulip_twitterrc") parser.error("Please provide a ~/.zulip_twitterrc")
if not consumer_key or not consumer_secret or not access_token_key or not access_token_secret: if not consumer_key or not consumer_secret or not access_token_key or not access_token_secret:
parser.error("Please provide a ~/.zulip_twitterrc") parser.error("Please provide a ~/.zulip_twitterrc")
try: try:
import twitter import twitter

View file

@ -119,10 +119,10 @@ try:
access_token_key = config.get('twitter', 'access_token_key') access_token_key = config.get('twitter', 'access_token_key')
access_token_secret = config.get('twitter', 'access_token_secret') access_token_secret = config.get('twitter', 'access_token_secret')
except (six.moves.configparser.NoSectionError, six.moves.configparser.NoOptionError): except (six.moves.configparser.NoSectionError, six.moves.configparser.NoOptionError):
parser.error("Please provide a ~/.zulip_twitterrc") parser.error("Please provide a ~/.zulip_twitterrc")
if not (consumer_key and consumer_secret and access_token_key and access_token_secret): if not (consumer_key and consumer_secret and access_token_key and access_token_secret):
parser.error("Please provide a ~/.zulip_twitterrc") parser.error("Please provide a ~/.zulip_twitterrc")
try: try:
since_id = config.getint('search', 'since_id') since_id = config.getint('search', 'since_id')

View file

@ -221,7 +221,7 @@ class Client(object):
site = site.rstrip("/") site = site.rstrip("/")
self.base_url = site self.base_url = site
else: else:
raise RuntimeError("Missing Zulip server URL; specify via --site or ~/.zuliprc.") raise RuntimeError("Missing Zulip server URL; specify via --site or ~/.zuliprc.")
if not self.base_url.endswith("/api"): if not self.base_url.endswith("/api"):
self.base_url += "/api" self.base_url += "/api"