Code style with latest yapf

This commit is contained in:
leandrotoledo 2016-06-19 17:50:02 -04:00
parent caf72ca490
commit b41f7e3e79
3 changed files with 14 additions and 17 deletions

View file

@ -618,14 +618,13 @@ class Bot(TelegramObject):
@log @log
@message @message
def sendVenue(self, def sendVenue(
chat_id, self, chat_id,
latitude, latitude,
longitude, longitude,
title, title, address,
address, foursquare_id=None,
foursquare_id=None, **kwargs):
**kwargs):
""" """
Use this method to send information about a venue. Use this method to send information about a venue.
@ -1133,11 +1132,10 @@ class Bot(TelegramObject):
@log @log
@message @message
def editMessageReplyMarkup(self, def editMessageReplyMarkup(
chat_id=None, self, chat_id=None,
message_id=None, message_id=None, inline_message_id=None,
inline_message_id=None, **kwargs):
**kwargs):
"""Use this method to edit only the reply markup of messages sent by """Use this method to edit only the reply markup of messages sent by
the bot or via the bot (for inline bots). the bot or via the bot (for inline bots).

View file

@ -125,9 +125,9 @@ class InputFile(object):
# Add input_file to upload # Add input_file to upload
form.extend([ form.extend([
form_boundary, 'Content-Disposition: form-data; name="%s"; filename="%s"' % form_boundary, 'Content-Disposition: form-data; name="%s"; filename="%s"' % (
(self.input_name, self.filename), 'Content-Type: %s' % self.mimetype, '', self.input_name, self.filename
self.input_file_content ), 'Content-Type: %s' % self.mimetype, '', self.input_file_content
]) ])
form.append('--' + self.boundary + '--') form.append('--' + self.boundary + '--')

View file

@ -1,4 +1,3 @@
#!/usr/bin/env python #!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
# #