From 73bd3572cfe6042f612367fbab8dd0779463a375 Mon Sep 17 00:00:00 2001 From: AZtheAsian Date: Wed, 30 Nov 2016 22:20:27 -0700 Subject: [PATCH] pep8: Fix E111 violations --- integrations/twitter/twitter-bot | 4 ++-- integrations/twitter/twitter-search-bot | 4 ++-- zulip/__init__.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/integrations/twitter/twitter-bot b/integrations/twitter/twitter-bot index aec159d..d7aabb2 100755 --- a/integrations/twitter/twitter-bot +++ b/integrations/twitter/twitter-bot @@ -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 diff --git a/integrations/twitter/twitter-search-bot b/integrations/twitter/twitter-search-bot index 1bd230a..e61b8f9 100755 --- a/integrations/twitter/twitter-search-bot +++ b/integrations/twitter/twitter-search-bot @@ -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') diff --git a/zulip/__init__.py b/zulip/__init__.py index bcbcccb..b63ce25 100644 --- a/zulip/__init__.py +++ b/zulip/__init__.py @@ -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"