aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/vk/platform.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-06-19 01:36:19 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-06-19 01:36:19 +0300
commitdd88c8103e13f108a0fed51a82221fdf60f6a188 (patch)
tree14c0038cd71f9e4a8208278b4e9b5f67e1a91c47 /vk/platform.py
parentremove commented out code (diff)
downloadvk-scripts-dd88c8103e13f108a0fed51a82221fdf60f6a188.tar.gz
vk-scripts-dd88c8103e13f108a0fed51a82221fdf60f6a188.zip
add Pylint configuration & fix the warnings
Diffstat (limited to '')
-rw-r--r--vk/platform.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/vk/platform.py b/vk/platform.py
index 4a9d8b6..5f87e41 100644
--- a/vk/platform.py
+++ b/vk/platform.py
@@ -28,16 +28,16 @@ class Platform(Enum):
return s
return s[:m.start()] + m.group().upper() + s[m.end():]
- def get_description_for_header(self):
+ def get_descr_header(self):
return self._uppercase_first_letter(_PLATFORM_DESCRIPTIONS[self])
- def get_description_for_sentence(self):
+ def get_descr_text(self):
s = _PLATFORM_DESCRIPTIONS[self]
s = s.replace('unrecognized', 'an unrecognized')
return 'the ' + s
- def get_description_for_sentence_beginning(self):
- return self._uppercase_first_letter(self.get_description_for_sentence())
+ def get_descr_text_capitalized(self):
+ return self._uppercase_first_letter(self.get_descr_text())
_PLATFORM_DESCRIPTIONS = {
Platform.MOBILE: '"mobile" web version (or unrecognized mobile app)',