mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-03 03:30:09 +03:00
Remove accidentally committed changes
This commit is contained in:
parent
3177e3a956
commit
4e985c3e4a
|
@ -66,22 +66,3 @@ def get_password_hash(pw, current_salt):
|
|||
return sha256(pw_hash).digest()
|
||||
|
||||
# endregion
|
||||
|
||||
# region Custom Classes
|
||||
|
||||
class TotalList(collections.UserList):
|
||||
"""
|
||||
A list with an extra `total` property, which may not match its `len`
|
||||
since the total represents the total amount of items *available*
|
||||
somewhere else, not the items *in this list*.
|
||||
"""
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.total = 0
|
||||
|
||||
def __str__(self):
|
||||
return '[{}, total={}]'.format(
|
||||
', '.join(repr(x) for x in self), self.total)
|
||||
|
||||
# endregion
|
||||
|
|
Loading…
Reference in New Issue
Block a user