@@ -112,40 +112,40 @@ class ErrorCodes(type):
112112 0 : 'Invalid command parameters number' ,
113113 1 : 'The specified passphrase is blank.' ,
114114 2 : 'The address version number currently must be 3, 4, or 0'
115- ' (which means auto-select).' ,
115+ ' (which means auto-select).' ,
116116 3 : 'The stream number must be 1 (or 0 which means'
117- ' auto-select). Others aren\' t supported.' ,
117+ ' auto-select). Others aren\' t supported.' ,
118118 4 : 'Why would you ask me to generate 0 addresses for you?' ,
119119 5 : 'You have (accidentally?) specified too many addresses to'
120- ' make. Maximum 999. This check only exists to prevent'
121- ' mischief; if you really want to create more addresses than'
122- ' this, contact the Bitmessage developers and we can modify'
123- ' the check or you can do it yourself by searching the source'
124- ' code for this message.' ,
120+ ' make. Maximum 999. This check only exists to prevent'
121+ ' mischief; if you really want to create more addresses than'
122+ ' this, contact the Bitmessage developers and we can modify'
123+ ' the check or you can do it yourself by searching the source'
124+ ' code for this message.' ,
125125 6 : 'The encoding type must be 2 or 3.' ,
126126 7 : 'Could not decode address' ,
127127 8 : 'Checksum failed for address' ,
128128 9 : 'Invalid characters in address' ,
129129 10 : 'Address version number too high (or zero)' ,
130130 11 : 'The address version number currently must be 2, 3 or 4.'
131- ' Others aren\' t supported. Check the address.' ,
131+ ' Others aren\' t supported. Check the address.' ,
132132 12 : 'The stream number must be 1. Others aren\' t supported.'
133- ' Check the address.' ,
133+ ' Check the address.' ,
134134 13 : 'Could not find this address in your keys.dat file.' ,
135135 14 : 'Your fromAddress is disabled. Cannot send.' ,
136136 15 : 'Invalid ackData object size.' ,
137137 16 : 'You are already subscribed to that address.' ,
138138 17 : 'Label is not valid UTF-8 data.' ,
139139 18 : 'Chan name does not match address.' ,
140140 19 : 'The length of hash should be 32 bytes (encoded in hex'
141- ' thus 64 characters).' ,
141+ ' thus 64 characters).' ,
142142 20 : 'Invalid method:' ,
143143 21 : 'Unexpected API Failure' ,
144144 22 : 'Decode error' ,
145145 23 : 'Bool expected in eighteenByteRipe' ,
146146 24 : 'Chan address is already present.' ,
147147 25 : 'Specified address is not a chan address.'
148- ' Use deleteAddress API call instead.' ,
148+ ' Use deleteAddress API call instead.' ,
149149 26 : 'Malformed varint in address: ' ,
150150 27 : 'Message is too long.' ,
151151 28 : 'Invalid parameter'
@@ -466,6 +466,7 @@ def APIAuthenticateClient(self):
466466class BMRPCDispatcher (object ):
467467 """This class is used to dispatch API commands"""
468468
469+ # pylint: disable=inconsistent-return-statements
469470 @staticmethod
470471 def _decode (text , decode_type ):
471472 try :
@@ -722,8 +723,8 @@ def HandleDeleteWhitelistEntry(self, address):
722723
723724 @command ('createRandomAddress' )
724725 def HandleCreateRandomAddress (
725- self , label , eighteenByteRipe = False , totalDifficulty = 0 ,
726- smallMessageDifficulty = 0
726+ self , label , eighteenByteRipe = False , totalDifficulty = 0 ,
727+ smallMessageDifficulty = 0
727728 ):
728729 """
729730 Create one address using the random number generator.
@@ -763,9 +764,9 @@ def HandleCreateRandomAddress(
763764
764765 @command ('createDeterministicAddresses' )
765766 def HandleCreateDeterministicAddresses (
766- self , passphrase , numberOfAddresses = 1 , addressVersionNumber = 0 ,
767- streamNumber = 0 , eighteenByteRipe = False , totalDifficulty = 0 ,
768- smallMessageDifficulty = 0
767+ self , passphrase , numberOfAddresses = 1 , addressVersionNumber = 0 ,
768+ streamNumber = 0 , eighteenByteRipe = False , totalDifficulty = 0 ,
769+ smallMessageDifficulty = 0
769770 ):
770771 """
771772 Create many addresses deterministically using the passphrase.
@@ -1190,8 +1191,8 @@ def HandleTrashSentMessage(self, msgid):
11901191
11911192 @command ('sendMessage' )
11921193 def HandleSendMessage (
1193- self , toAddress , fromAddress , subject , message ,
1194- encodingType = 2 , TTL = 4 * 24 * 60 * 60
1194+ self , toAddress , fromAddress , subject , message ,
1195+ encodingType = 2 , TTL = 4 * 24 * 60 * 60
11951196 ):
11961197 """
11971198 Send the message and return ackdata (hex encoded string).
@@ -1242,7 +1243,7 @@ def HandleSendMessage(
12421243
12431244 @command ('sendBroadcast' )
12441245 def HandleSendBroadcast (
1245- self , fromAddress , subject , message , encodingType = 2 ,
1246+ self , fromAddress , subject , message , encodingType = 2 ,
12461247 TTL = 4 * 24 * 60 * 60 ):
12471248 """Send the broadcast message. Similiar to *sendMessage*."""
12481249
@@ -1361,9 +1362,9 @@ def ListSubscriptions(self):
13611362
13621363 @command ('disseminatePreEncryptedMsg' , 'disseminatePreparedObject' )
13631364 def HandleDisseminatePreparedObject (
1364- self , encryptedPayload ,
1365- nonceTrialsPerByte = networkDefaultProofOfWorkNonceTrialsPerByte ,
1366- payloadLengthExtraBytes = networkDefaultPayloadLengthExtraBytes
1365+ self , encryptedPayload ,
1366+ nonceTrialsPerByte = networkDefaultProofOfWorkNonceTrialsPerByte ,
1367+ payloadLengthExtraBytes = networkDefaultPayloadLengthExtraBytes
13671368 ):
13681369 """
13691370 Handle a request to disseminate an encrypted message.
0 commit comments