pep8: Fix E111 violations
This commit is contained in:
parent
fad4fbc733
commit
73bd3572cf
|
@ -98,10 +98,10 @@ try:
|
|||
access_token_key = config.get('twitter', 'access_token_key')
|
||||
access_token_secret = config.get('twitter', 'access_token_secret')
|
||||
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:
|
||||
parser.error("Please provide a ~/.zulip_twitterrc")
|
||||
parser.error("Please provide a ~/.zulip_twitterrc")
|
||||
|
||||
try:
|
||||
import twitter
|
||||
|
|
|
@ -119,10 +119,10 @@ try:
|
|||
access_token_key = config.get('twitter', 'access_token_key')
|
||||
access_token_secret = config.get('twitter', 'access_token_secret')
|
||||
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):
|
||||
parser.error("Please provide a ~/.zulip_twitterrc")
|
||||
parser.error("Please provide a ~/.zulip_twitterrc")
|
||||
|
||||
try:
|
||||
since_id = config.getint('search', 'since_id')
|
||||
|
|
|
@ -221,7 +221,7 @@ class Client(object):
|
|||
site = site.rstrip("/")
|
||||
self.base_url = site
|
||||
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"):
|
||||
self.base_url += "/api"
|
||||
|
|
Loading…
Reference in a new issue