1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 11:32:20 -05:00

Merge pull request #760 from adam111316/adba

Replace tabs with spaces in adba libs / PEP8
This commit is contained in:
adam111316 2014-08-30 12:12:10 +08:00
commit f6edcc8ea6
2 changed files with 1535 additions and 1425 deletions

View File

@ -15,23 +15,30 @@
# You should have received a copy of the GNU General Public License
# along with aDBa. If not, see <http://www.gnu.org/licenses/>.
class AniDBError(Exception):
pass
class AniDBIncorrectParameterError(AniDBError):
pass
class AniDBCommandTimeoutError(AniDBError):
pass
class AniDBMustAuthError(AniDBError):
pass
class AniDBPacketCorruptedError(AniDBError):
pass
class AniDBBannedError(AniDBError):
pass
class AniDBInternalError(AniDBError):
pass

View File

@ -18,6 +18,7 @@
from types import FunctionType
from aniDBmaper import AniDBMaper
class ResponseResolver:
def __init__(self, data):
restag, rescode, resstr, datalines = self.parse(data)
@ -42,7 +43,6 @@ class ResponseResolver:
for line in lines:
datalines.append(line.split('|'))
return restag, rescode, resstr, datalines
def resolve(self, cmd):
@ -59,7 +59,8 @@ class Response:
self.maper = AniDBMaper()
def __repr__(self):
tmp="%s(%s,%s,%s) %s\n"%(self.__class__.__name__,repr(self.restag),repr(self.rescode),repr(self.resstr),repr(self.attrs))
tmp = "%s(%s,%s,%s) %s\n" % (
self.__class__.__name__, repr(self.restag), repr(self.rescode), repr(self.resstr), repr(self.attrs))
m = 0
for line in self.datalines:
@ -95,6 +96,7 @@ class Response:
if self.req:
self.req.handle(self)
class LoginAcceptedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -117,6 +119,7 @@ class LoginAcceptedResponse(Response):
else:
self.codehead = ('sesskey',)
class LoginAcceptedNewVerResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -139,6 +142,7 @@ class LoginAcceptedNewVerResponse(Response):
else:
self.codehead = ('sesskey',)
class LoggedOutResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -153,6 +157,7 @@ class LoggedOutResponse(Response):
self.codetail = ()
self.coderep = ()
class ResourceResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -167,6 +172,7 @@ class ResourceResponse(Response):
self.codetail = ()
self.coderep = ()
class StatsResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -181,6 +187,7 @@ class StatsResponse(Response):
self.codetail = ()
self.coderep = ()
class TopResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -195,6 +202,7 @@ class TopResponse(Response):
self.codetail = ()
self.coderep = ()
class UptimeResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -210,6 +218,7 @@ class UptimeResponse(Response):
self.codetail = ('uptime',)
self.coderep = ()
class EncryptionEnabledResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -225,6 +234,7 @@ class EncryptionEnabledResponse(Response):
self.codetail = ()
self.coderep = ()
class MylistEntryAddedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -240,6 +250,7 @@ class MylistEntryAddedResponse(Response):
self.codetail = ('entrycnt',)
self.coderep = ()
class MylistEntryDeletedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -255,6 +266,7 @@ class MylistEntryDeletedResponse(Response):
self.codetail = ('entrycnt',)
self.coderep = ()
class AddedFileResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -269,6 +281,7 @@ class AddedFileResponse(Response):
self.codetail = ()
self.coderep = ()
class AddedStreamResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -283,6 +296,7 @@ class AddedStreamResponse(Response):
self.codetail = ()
self.coderep = ()
class EncodingChangedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -296,8 +310,8 @@ class EncodingChangedResponse(Response):
self.codetail = ()
self.coderep = ()
class FileResponse(Response):
class FileResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
attributes:
@ -363,6 +377,7 @@ class FileResponse(Response):
self.codetail = tuple(['fid'] + codeListF + codeListA)
class MylistResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -387,6 +402,7 @@ class MylistResponse(Response):
self.codetail = ('lid', 'fid', 'eid', 'aid', 'gid', 'date', 'state', 'viewdate', 'storage', 'source', 'other')
self.coderep = ()
class MylistStatsResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -414,12 +430,14 @@ class MylistStatsResponse(Response):
Response.__init__(self, cmd, restag, rescode, resstr, datalines)
self.codestr = 'MYLIST_STATS'
self.codehead = ()
self.codetail=('animes', 'eps', 'files', 'filesizes', 'animesadded', 'epsadded', 'filesadded', 'groupsadded', 'leechperc', 'lameperc', 'viewedofdb', 'mylistofdb', 'viewedofmylist', 'viewedeps', 'votes', 'reviews')
self.codetail = (
'animes', 'eps', 'files', 'filesizes', 'animesadded', 'epsadded', 'filesadded', 'groupsadded', 'leechperc',
'lameperc', 'viewedofdb', 'mylistofdb', 'viewedofmylist', 'viewedeps', 'votes', 'reviews')
self.coderep = ()
class AnimeResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
Response.__init__(self, cmd, restag, rescode, resstr, datalines)
self.codestr = 'ANIME'
self.codehead = ()
@ -430,6 +448,7 @@ class AnimeResponse(Response):
codeList = self.maper.getAnimeCodesA(amask)
self.codetail = tuple(codeList)
class AnimeBestMatchResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -444,6 +463,7 @@ class AnimeBestMatchResponse(Response):
self.codetail = ()
self.coderep = ()
class RandomanimeResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -458,6 +478,7 @@ class RandomanimeResponse(Response):
self.codetail = ()
self.coderep = ()
class EpisodeResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -481,6 +502,7 @@ class EpisodeResponse(Response):
self.codetail = ('eid', 'aid', 'length', 'rating', 'votes', 'epno', 'name', 'romaji', 'kanji')
self.coderep = ()
class ProducerResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -502,6 +524,7 @@ class ProducerResponse(Response):
self.codetail = ('pid', 'name', 'shortname', 'othername', 'type', 'pic', 'url')
self.coderep = ()
class GroupResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -523,9 +546,11 @@ class GroupResponse(Response):
Response.__init__(self, cmd, restag, rescode, resstr, datalines)
self.codestr = 'GROUP'
self.codehead = ()
self.codetail=('gid', 'rating', 'votes', 'animes', 'files', 'name', 'shortname', 'ircchannel', 'ircserver', 'url')
self.codetail = (
'gid', 'rating', 'votes', 'animes', 'files', 'name', 'shortname', 'ircchannel', 'ircserver', 'url')
self.coderep = ()
class GroupstatusResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -550,6 +575,7 @@ class GroupstatusResponse(Response):
self.codetail = ('gid', 'name', 'state', ' last_episode_number', 'rating', 'votes', 'episode_range')
self.coderep = ()
class BuddyListResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -570,6 +596,7 @@ class BuddyListResponse(Response):
self.codetail = ('uid', 'username', 'state')
self.coderep = ()
class BuddyStateResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -589,6 +616,7 @@ class BuddyStateResponse(Response):
self.codetail = ('uid', 'state')
self.coderep = ()
class BuddyAddedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -603,6 +631,7 @@ class BuddyAddedResponse(Response):
self.codetail = ()
self.coderep = ()
class BuddyDeletedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -617,6 +646,7 @@ class BuddyDeletedResponse(Response):
self.codetail = ()
self.coderep = ()
class BuddyAcceptedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -631,6 +661,7 @@ class BuddyAcceptedResponse(Response):
self.codetail = ()
self.coderep = ()
class BuddyDeniedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -645,6 +676,7 @@ class BuddyDeniedResponse(Response):
self.codetail = ()
self.coderep = ()
class VotedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -660,6 +692,7 @@ class VotedResponse(Response):
self.codetail = ('name',)
self.coderep = ()
class VoteFoundResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -676,6 +709,7 @@ class VoteFoundResponse(Response):
self.codetail = ('name', 'value')
self.coderep = ()
class VoteUpdatedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -692,6 +726,7 @@ class VoteUpdatedResponse(Response):
self.codetail = ('name', 'value')
self.coderep = ()
class VoteRevokedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -709,7 +744,6 @@ class VoteRevokedResponse(Response):
self.coderep = ()
class NotificationAddedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -725,6 +759,7 @@ class NotificationAddedResponse(Response):
self.codetail = ('nid')
self.coderep = ()
class NotificationUpdatedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -740,6 +775,7 @@ class NotificationUpdatedResponse(Response):
self.codetail = ('nid')
self.coderep = ()
class NotificationEnabledResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -754,6 +790,7 @@ class NotificationEnabledResponse(Response):
self.codetail = ()
self.coderep = ()
class NotificationNotifyResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -773,6 +810,7 @@ class NotificationNotifyResponse(Response):
self.codetail = ('aid', 'date', 'count', 'name')
self.coderep = ()
class NotificationMessageResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -793,6 +831,7 @@ class NotificationMessageResponse(Response):
self.codetail = ('type', 'date', 'uid', 'name', 'subject')
self.coderep = ()
class NotificationBuddyResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -810,6 +849,7 @@ class NotificationBuddyResponse(Response):
self.codetail = ('uid', 'type')
self.coderep = ()
class NotificationShutdownResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -827,6 +867,7 @@ class NotificationShutdownResponse(Response):
self.codetail = ('time', 'comment')
self.coderep = ()
class PushackConfirmedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -841,6 +882,7 @@ class PushackConfirmedResponse(Response):
self.codetail = ()
self.coderep = ()
class NotifyackSuccessfulMResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -855,6 +897,7 @@ class NotifyackSuccessfulMResponse(Response):
self.codetail = ()
self.coderep = ()
class NotifyackSuccessfulNResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -869,6 +912,7 @@ class NotifyackSuccessfulNResponse(Response):
self.codetail = ()
self.coderep = ()
class NotificationResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -892,6 +936,7 @@ class NotificationResponse(Response):
else:
self.codetail = ('notifies', 'msgs')
class NotifylistResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -908,6 +953,7 @@ class NotifylistResponse(Response):
self.codetail = ('type', 'nid')
self.coderep = ()
class NotifygetMessageResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -929,6 +975,7 @@ class NotifygetMessageResponse(Response):
self.codetail = ('nid', 'uid', 'uname', 'date', 'type', 'title', 'body')
self.coderep = ()
class NotifygetNotifyResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -948,6 +995,7 @@ class NotifygetNotifyResponse(Response):
self.codetail = ('aid', 'type', 'count', 'date', 'name')
self.coderep = ()
class SendmsgSuccessfulResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -962,6 +1010,7 @@ class SendmsgSuccessfulResponse(Response):
self.codetail = ()
self.coderep = ()
class UserResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -977,6 +1026,7 @@ class UserResponse(Response):
self.codetail = ('uid',)
self.coderep = ()
class PongResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -991,6 +1041,7 @@ class PongResponse(Response):
self.codetail = ()
self.coderep = ()
class AuthpongResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1005,6 +1056,7 @@ class AuthpongResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchResourceResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1019,6 +1071,7 @@ class NoSuchResourceResponse(Response):
self.codetail = ()
self.coderep = ()
class ApiPasswordNotDefinedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1033,6 +1086,7 @@ class ApiPasswordNotDefinedResponse(Response):
self.codetail = ()
self.coderep = ()
class FileAlreadyInMylistResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1047,6 +1101,7 @@ class FileAlreadyInMylistResponse(Response):
self.codetail = ()
self.coderep = ()
class MylistEntryEditedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1062,6 +1117,7 @@ class MylistEntryEditedResponse(Response):
self.codetail = ('entries',)
self.coderep = ()
class MultipleMylistEntriesResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1085,6 +1141,7 @@ class MultipleMylistEntriesResponse(Response):
self.codetail = ('name', 'eps', 'unknowneps', 'hddeps', 'cdeps', 'deletedeps', 'watchedeps')
self.coderep = ('gshortname', 'geps')
class SizeHashExistsResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1099,6 +1156,7 @@ class SizeHashExistsResponse(Response):
self.codetail = ()
self.coderep = ()
class InvalidDataResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1113,6 +1171,7 @@ class InvalidDataResponse(Response):
self.codetail = ()
self.coderep = ()
class StreamnoidUsedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1127,6 +1186,7 @@ class StreamnoidUsedResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchFileResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1141,6 +1201,7 @@ class NoSuchFileResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchEntryResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1155,6 +1216,7 @@ class NoSuchEntryResponse(Response):
self.codetail = ()
self.coderep = ()
class MultipleFilesFoundResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1170,6 +1232,7 @@ class MultipleFilesFoundResponse(Response):
self.codetail = ()
self.coderep = ('fid',)
class NoGroupsFoundResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1184,6 +1247,7 @@ class NoGroupsFoundResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchAnimeResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1198,6 +1262,7 @@ class NoSuchAnimeResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchEpisodeResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1212,6 +1277,7 @@ class NoSuchEpisodeResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchProducerResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1226,6 +1292,7 @@ class NoSuchProducerResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchGroupResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1240,6 +1307,7 @@ class NoSuchGroupResponse(Response):
self.codetail = ()
self.coderep = ()
class BuddyAlreadyAddedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1254,6 +1322,7 @@ class BuddyAlreadyAddedResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchBuddyResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1268,6 +1337,7 @@ class NoSuchBuddyResponse(Response):
self.codetail = ()
self.coderep = ()
class BuddyAlreadyAcceptedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1282,6 +1352,7 @@ class BuddyAlreadyAcceptedResponse(Response):
self.codetail = ()
self.coderep = ()
class BuddyAlreadyDeniedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1296,6 +1367,7 @@ class BuddyAlreadyDeniedResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchVoteResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1310,6 +1382,7 @@ class NoSuchVoteResponse(Response):
self.codetail = ()
self.coderep = ()
class InvalidVoteTypeResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1324,6 +1397,7 @@ class InvalidVoteTypeResponse(Response):
self.codetail = ()
self.coderep = ()
class InvalidVoteValueResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1338,6 +1412,7 @@ class InvalidVoteValueResponse(Response):
self.codetail = ()
self.coderep = ()
class PermvoteNotAllowedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1353,6 +1428,7 @@ class PermvoteNotAllowedResponse(Response):
self.codetail = ('aname',)
self.coderep = ()
class AlreadyPermvotedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1368,6 +1444,7 @@ class AlreadyPermvotedResponse(Response):
self.codetail = ('name',)
self.coderep = ()
class NotificationDisabledResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1382,6 +1459,7 @@ class NotificationDisabledResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchPacketPendingResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1396,6 +1474,7 @@ class NoSuchPacketPendingResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchEntryMResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1410,6 +1489,7 @@ class NoSuchEntryMResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchEntryNResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1424,6 +1504,7 @@ class NoSuchEntryNResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchMessageResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1438,6 +1519,7 @@ class NoSuchMessageResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchNotifyResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1452,6 +1534,7 @@ class NoSuchNotifyResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchUserResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1466,6 +1549,7 @@ class NoSuchUserResponse(Response):
self.codetail = ()
self.coderep = ()
class NoChanges(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1480,6 +1564,7 @@ class NoChanges(Response):
self.codetail = ()
self.coderep = ()
class NotLoggedInResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1494,6 +1579,7 @@ class NotLoggedInResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchMylistFileResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1508,6 +1594,7 @@ class NoSuchMylistFileResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchMylistEntryResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1522,6 +1609,7 @@ class NoSuchMylistEntryResponse(Response):
self.codetail = ()
self.coderep = ()
class LoginFailedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1536,6 +1624,7 @@ class LoginFailedResponse(Response):
self.codetail = ()
self.coderep = ()
class LoginFirstResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1550,6 +1639,7 @@ class LoginFirstResponse(Response):
self.codetail = ()
self.coderep = ()
class AccessDeniedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1564,6 +1654,7 @@ class AccessDeniedResponse(Response):
self.codetail = ()
self.coderep = ()
class ClientVersionOutdatedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1578,6 +1669,7 @@ class ClientVersionOutdatedResponse(Response):
self.codetail = ()
self.coderep = ()
class ClientBannedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1592,6 +1684,7 @@ class ClientBannedResponse(Response):
self.codetail = ()
self.coderep = ()
class IllegalInputOrAccessDeniedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1606,6 +1699,7 @@ class IllegalInputOrAccessDeniedResponse(Response):
self.codetail = ()
self.coderep = ()
class InvalidSessionResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1620,6 +1714,7 @@ class InvalidSessionResponse(Response):
self.codetail = ()
self.coderep = ()
class NoSuchEncryptionTypeResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1634,6 +1729,7 @@ class NoSuchEncryptionTypeResponse(Response):
self.codetail = ()
self.coderep = ()
class EncodingNotSupportedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1648,6 +1744,7 @@ class EncodingNotSupportedResponse(Response):
self.codetail = ()
self.coderep = ()
class BannedResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1662,6 +1759,7 @@ class BannedResponse(Response):
self.codetail = ()
self.coderep = ()
class UnknownCommandResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1676,6 +1774,7 @@ class UnknownCommandResponse(Response):
self.codetail = ()
self.coderep = ()
class InternalServerErrorResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1690,6 +1789,7 @@ class InternalServerErrorResponse(Response):
self.codetail = ()
self.coderep = ()
class AnidbOutOfServiceResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1704,6 +1804,7 @@ class AnidbOutOfServiceResponse(Response):
self.codetail = ()
self.coderep = ()
class ServerBusyResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1718,6 +1819,7 @@ class ServerBusyResponse(Response):
self.codetail = ()
self.coderep = ()
class ApiViolationResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""
@ -1732,6 +1834,7 @@ class ApiViolationResponse(Response):
self.codetail = ()
self.coderep = ()
class VersionResponse(Response):
def __init__(self, cmd, restag, rescode, resstr, datalines):
"""