From b41f7e3e79ea9211275134ba0f30ddd50c5cafe3 Mon Sep 17 00:00:00 2001 From: leandrotoledo Date: Sun, 19 Jun 2016 17:50:02 -0400 Subject: [PATCH] Code style with latest yapf --- telegram/bot.py | 24 +++++++++++------------- telegram/inputfile.py | 6 +++--- tests/test_jobqueue.py | 1 - 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/telegram/bot.py b/telegram/bot.py index 16338bd69..2145bee79 100644 --- a/telegram/bot.py +++ b/telegram/bot.py @@ -618,14 +618,13 @@ 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. @@ -1133,11 +1132,10 @@ 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/inputfile.py b/telegram/inputfile.py index 5ed3c28c9..8c9276eb5 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 + '--') diff --git a/tests/test_jobqueue.py b/tests/test_jobqueue.py index 2d3678fcd..8cadd8e1d 100644 --- a/tests/test_jobqueue.py +++ b/tests/test_jobqueue.py @@ -1,4 +1,3 @@ - #!/usr/bin/env python # encoding: utf-8 #