Adding newline at EOF

This commit is contained in:
Leandro Toledo 2015-07-19 22:06:07 -03:00
parent 82f1496d4a
commit ded002a0c8
13 changed files with 13 additions and 13 deletions

View file

@ -30,4 +30,4 @@ class Contact(Base):
json_data['last_name'] = self.last_name
if self.user_id:
json_data['user_id'] = self.user_id
return json.dumps(json_data)
return json.dumps(json_data)

View file

@ -41,4 +41,4 @@ class Document(Base):
json_data['mime_type'] = self.mime_type
if self.file_size:
json_data['file_size'] = self.file_size
return json.dumps(json_data)
return json.dumps(json_data)

View file

@ -21,4 +21,4 @@ class ForceReply(ReplyMarkup):
json_data = {'force_reply': self.force_reply}
if self.selective:
json_data['selective'] = self.selective
return json.dumps(json_data)
return json.dumps(json_data)

View file

@ -20,4 +20,4 @@ class GroupChat(Base):
def to_json(self):
json_data = {'id': self.id,
'title': self.title}
return json.dumps(json_data)
return json.dumps(json_data)

View file

@ -20,4 +20,4 @@ class Location(Base):
def to_json(self):
json_data = {'longitude': self.longitude,
'latitude': self.latitude}
return json.dumps(json_data)
return json.dumps(json_data)

View file

@ -203,4 +203,4 @@ class Message(Base):
json_data['delete_chat_photo'] = self.delete_chat_photo
if self.group_chat_created:
json_data['group_chat_created'] = self.group_chat_created
return json.dumps(json_data)
return json.dumps(json_data)

View file

@ -29,4 +29,4 @@ class PhotoSize(Base):
'height': self.height}
if self.file_size:
json_data['file_size'] = self.file_size
return json.dumps(json_data)
return json.dumps(json_data)

View file

@ -4,4 +4,4 @@ from .telegram_boject_base import Base
class ReplyMarkup(Base):
def to_json(self):
raise NotImplementedError
raise NotImplementedError

View file

@ -39,4 +39,4 @@ class Sticker(Base):
'thumb': self.thumb.to_json()}
if self.file_size:
json_data['file_size'] = self.file_size
return json.dumps(json_data)
return json.dumps(json_data)

View file

@ -27,4 +27,4 @@ class Update(Base):
json_data = {'update_id': self.update_id}
if self.message:
json_data['message'] = self.message.to_json()
return json.dumps(json_data)
return json.dumps(json_data)

View file

@ -38,4 +38,4 @@ class User(Base):
json_data['last_name'] = self.last_name
if self.username:
json_data['username'] = self.username
return json.dumps(json_data)
return json.dumps(json_data)

View file

@ -33,4 +33,4 @@ class UserProfilePhotos(Base):
json_data['photos'] = []
for photo in self.photos:
json_data['photos'].append([x.to_json() for x in photo])
return json.dumps(json_data)
return json.dumps(json_data)

View file

@ -53,4 +53,4 @@ class Video(Base):
json_data['file_size'] = self.file_size
if self.caption:
json_data['caption'] = self.caption
return json.dumps(json_data)
return json.dumps(json_data)