Fixing mismatched parens.

This commit is contained in:
Gregor Robinson 2013-06-24 11:38:40 +00:00
parent b7055cd856
commit 652303f635

View File

@ -1235,7 +1235,7 @@ class receiveDataThread(threading.Thread):
if not self.isProofOfWorkSufficient(encryptedData, requiredNonceTrialsPerByte, if not self.isProofOfWorkSufficient(encryptedData, requiredNonceTrialsPerByte,
requiredPayloadLengthExtraBytes): requiredPayloadLengthExtraBytes):
logger.info('Proof of work in msg message insufficient only because it ' logger.info('Proof of work in msg message insufficient only because it '
'does not meet our higher requirement.' 'does not meet our higher requirement.')
return return
# Gets set to True if the user shouldn't see the message according to black/white lists. # Gets set to True if the user shouldn't see the message according to black/white lists.
blockMessage = False blockMessage = False
@ -1422,7 +1422,7 @@ class receiveDataThread(threading.Thread):
if embeddedTime < int(time.time()) - lengthOfTimeToHoldOnToAllPubkeys: if embeddedTime < int(time.time()) - lengthOfTimeToHoldOnToAllPubkeys:
logger.info('The embedded time in this pubkey message is too old. Ignoring. ' logger.info('The embedded time in this pubkey message is too old. Ignoring. '
'Embedded time is: %s', embeddedTime 'Embedded time is: %s', embeddedTime)
return return
if embeddedTime > int(time.time()) + 10800: if embeddedTime > int(time.time()) + 10800:
logger.info('The embedded time in this pubkey message more than several hours in the ' logger.info('The embedded time in this pubkey message more than several hours in the '
@ -1498,7 +1498,7 @@ class receiveDataThread(threading.Thread):
if addressVersion == 2: if addressVersion == 2:
if len(data) < 146: # sanity check. This is the minimum possible length. if len(data) < 146: # sanity check. This is the minimum possible length.
logger.info('(within processpubkey) payloadLength less than 146. ' logger.info('(within processpubkey) payloadLength less than 146. '
'Sanity check failed.' 'Sanity check failed.')
return return
bitfieldBehaviors = data[readPosition:readPosition + 4] bitfieldBehaviors = data[readPosition:readPosition + 4]
readPosition += 4 readPosition += 4