Skip to content

Commit 5b91194

Browse files
committed
new yapf version, new cosmetic fixes
1 parent 494a7ec commit 5b91194

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

telegram/bot.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -618,13 +618,14 @@ def sendLocation(self, chat_id, latitude, longitude, **kwargs):
618618

619619
@log
620620
@message
621-
def sendVenue(
622-
self, chat_id,
623-
latitude,
624-
longitude,
625-
title, address,
626-
foursquare_id=None,
627-
**kwargs):
621+
def sendVenue(self,
622+
chat_id,
623+
latitude,
624+
longitude,
625+
title,
626+
address,
627+
foursquare_id=None,
628+
**kwargs):
628629
"""
629630
Use this method to send information about a venue.
630631
@@ -1132,10 +1133,11 @@ def editMessageCaption(self,
11321133

11331134
@log
11341135
@message
1135-
def editMessageReplyMarkup(
1136-
self, chat_id=None,
1137-
message_id=None, inline_message_id=None,
1138-
**kwargs):
1136+
def editMessageReplyMarkup(self,
1137+
chat_id=None,
1138+
message_id=None,
1139+
inline_message_id=None,
1140+
**kwargs):
11391141
"""Use this method to edit only the reply markup of messages sent by
11401142
the bot or via the bot (for inline bots).
11411143

telegram/ext/updater.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,9 @@ def _start_webhook(self, listen, port, url_path, cert, key, bootstrap_retries, c
285285
def _check_ssl_cert(self, cert, key):
286286
# Check SSL-Certificate with openssl, if possible
287287
try:
288-
exit_code = subprocess.call(
289-
["openssl", "x509", "-text", "-noout", "-in", cert],
290-
stdout=open(os.devnull, 'wb'),
291-
stderr=subprocess.STDOUT)
288+
exit_code = subprocess.call(["openssl", "x509", "-text", "-noout", "-in", cert],
289+
stdout=open(os.devnull, 'wb'),
290+
stderr=subprocess.STDOUT)
292291
except OSError:
293292
exit_code = 0
294293
if exit_code is 0:

telegram/inputfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ def to_form(self):
125125

126126
# Add input_file to upload
127127
form.extend([
128-
form_boundary, 'Content-Disposition: form-data; name="%s"; filename="%s"' % (
129-
self.input_name, self.filename
130-
), 'Content-Type: %s' % self.mimetype, '', self.input_file_content
128+
form_boundary, 'Content-Disposition: form-data; name="%s"; filename="%s"' %
129+
(self.input_name, self.filename), 'Content-Type: %s' % self.mimetype, '',
130+
self.input_file_content
131131
])
132132

133133
form.append('--' + self.boundary + '--')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy