diff --git a/telegram/bot.py b/telegram/bot.py index 2145bee79..16338bd69 100644 --- a/telegram/bot.py +++ b/telegram/bot.py @@ -618,13 +618,14 @@ class Bot(TelegramObject): @log @message - def sendVenue( - self, chat_id, - latitude, - longitude, - title, address, - foursquare_id=None, - **kwargs): + def sendVenue(self, + chat_id, + latitude, + longitude, + title, + address, + foursquare_id=None, + **kwargs): """ Use this method to send information about a venue. @@ -1132,10 +1133,11 @@ class Bot(TelegramObject): @log @message - def editMessageReplyMarkup( - self, chat_id=None, - message_id=None, inline_message_id=None, - **kwargs): + def editMessageReplyMarkup(self, + chat_id=None, + message_id=None, + inline_message_id=None, + **kwargs): """Use this method to edit only the reply markup of messages sent by the bot or via the bot (for inline bots). diff --git a/telegram/ext/updater.py b/telegram/ext/updater.py index 420763e87..3fc99e43b 100644 --- a/telegram/ext/updater.py +++ b/telegram/ext/updater.py @@ -285,10 +285,9 @@ class Updater(object): def _check_ssl_cert(self, cert, key): # Check SSL-Certificate with openssl, if possible try: - exit_code = subprocess.call( - ["openssl", "x509", "-text", "-noout", "-in", cert], - stdout=open(os.devnull, 'wb'), - stderr=subprocess.STDOUT) + exit_code = subprocess.call(["openssl", "x509", "-text", "-noout", "-in", cert], + stdout=open(os.devnull, 'wb'), + stderr=subprocess.STDOUT) except OSError: exit_code = 0 if exit_code is 0: diff --git a/telegram/inputfile.py b/telegram/inputfile.py index 8c9276eb5..5ed3c28c9 100644 --- a/telegram/inputfile.py +++ b/telegram/inputfile.py @@ -125,9 +125,9 @@ class InputFile(object): # Add input_file to upload form.extend([ - form_boundary, 'Content-Disposition: form-data; name="%s"; filename="%s"' % ( - self.input_name, self.filename - ), 'Content-Type: %s' % self.mimetype, '', self.input_file_content + form_boundary, 'Content-Disposition: form-data; name="%s"; filename="%s"' % + (self.input_name, self.filename), 'Content-Type: %s' % self.mimetype, '', + self.input_file_content ]) form.append('--' + self.boundary + '--')