Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit a207611

Browse files
author
adam zethraeus
committed
added default_profile and default_profile_image to User.__eq__ and User.asDict()
1 parent 44a7f7a commit a207611

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

twitter/user.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,8 @@ def __eq__(self, other):
689689
self.screen_name == other.screen_name and \
690690
self.location == other.location and \
691691
self.description == other.description and \
692+
self.default_profile == other.default_profile and \
693+
self.default_profile_image == other.default_profile_image and \
692694
self.profile_image_url == other.profile_image_url and \
693695
self.profile_background_tile == other.profile_background_tile and \
694696
self.profile_background_image_url == other.profile_background_image_url and \
@@ -754,6 +756,10 @@ def AsDict(self):
754756
data['location'] = self.location
755757
if self.description:
756758
data['description'] = self.description
759+
if self.default_profile:
760+
data['default_profile'] = self.default_profile
761+
if self.default_profile_image:
762+
data['default_profile_image'] = self.default_profile_image
757763
if self.profile_image_url:
758764
data['profile_image_url'] = self.profile_image_url
759765
if self.profile_background_tile is not None:

0 commit comments

Comments
 (0)