aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2018-03-03 15:11:46 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2018-03-03 15:11:46 +0300
commit0ac93e26d3b2abe6704095f1ba050a649edd33bb (patch)
tree92b493309fcc0950ee60dc5dba5a469954b2e1ee
parentswitch to VK API version 5.73 (diff)
downloadvk-scripts-0ac93e26d3b2abe6704095f1ba050a649edd33bb.tar.gz
vk-scripts-0ac93e26d3b2abe6704095f1ba050a649edd33bb.zip
no more user.screen_name
Can't find any mention of it in the docs.
-rw-r--r--vk/user.py13
1 files changed, 0 insertions, 13 deletions
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