From 0ac93e26d3b2abe6704095f1ba050a649edd33bb Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 3 Mar 2018 15:11:46 +0300 Subject: no more user.screen_name Can't find any mention of it in the docs. --- vk/user.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'vk') diff --git a/vk/user.py b/vk/user.py index 36d4dec..6261683 100644 --- a/vk/user.py +++ b/vk/user.py @@ -44,7 +44,6 @@ class UserField(Enum): DOMAIN = 'domain' ONLINE = 'online' LAST_SEEN = 'last_seen' - SCREEN_NAME = 'screen_name' def __str__(self): return self.value @@ -183,15 +182,3 @@ class User(Hashable, MutableMapping): def get_last_seen_platform(self): return self[UserField.LAST_SEEN].get_platform() - - def has_screen_name(self): - return UserField.SCREEN_NAME in self - - def get_screen_name(self): - if self.has_screen_name(): - return self[UserField.SCREEN_NAME] - else: - return 'id' + str(self.get_uid()) - - def set_screen_name(self, name): - self[UserField.SCREEN_NAME] = name -- cgit v1.2.3