X Tutup
Skip to content

Commit 5fe1481

Browse files
committed
Revert 1879cff
1 parent 1879cff commit 5fe1481

File tree

3 files changed

+0
-78
lines changed

3 files changed

+0
-78
lines changed

AUTHORS.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ The following wonderful people contributed directly or indirectly to this projec
1313
- `ErgoZ Riftbit Vaper <https://github.com/ergoz>`_
1414
- `franciscod <https://github.com/franciscod>`_
1515
- `JASON0916 <https://github.com/JASON0916>`_
16-
- `jh0ker <https://github.com/jh0ker>`_
1716
- `JRoot3D <https://github.com/JRoot3D>`_
1817
- `macrojames <https://github.com/macrojames>`_
1918
- `njittam <https://github.com/njittam>`_

telegram/emoji.py

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -20,43 +20,10 @@
2020

2121
"""This module contains a object that represents an Emoji"""
2222

23-
import sys
2423

25-
def call_decode_byte_strings(cls):
26-
"""
27-
Calls the _decode_byte_strings function of the created class
28-
29-
Args:
30-
cls (Class):
31-
32-
Returns:
33-
Class:
34-
"""
35-
36-
cls._decode_byte_strings()
37-
return cls
38-
39-
@call_decode_byte_strings
4024
class Emoji(object):
4125
"""This object represents an Emoji."""
4226

43-
@classmethod
44-
def _decode_byte_strings(cls):
45-
"""
46-
Decodes the Emojis into unicode strings if using Python 3
47-
48-
Args:
49-
cls (Class):
50-
51-
Returns:
52-
"""
53-
54-
if sys.version_info.major is 3:
55-
emojis = filter(lambda attr : type(getattr(cls, attr)) is bytes,
56-
dir(cls))
57-
for var in emojis:
58-
setattr(cls, var, getattr(cls, var).decode('utf-8'))
59-
6027
GRINNING_FACE_WITH_SMILING_EYES = b'\xF0\x9F\x98\x81'
6128
FACE_WITH_TEARS_OF_JOY = b'\xF0\x9F\x98\x82'
6229
SMILING_FACE_WITH_OPEN_MOUTH = b'\xF0\x9F\x98\x83'

tests/test_emoji.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)
X Tutup