def _handleLegacyResult(result):
 if (not isinstance(result, dict)):
  warnings.warn('The Gerrit status callback uses the old way to communicate results.  The outcome might be not what is expected.')
  (message, verified, reviewed) = result
  result = makeReviewResult(message, (GERRIT_LABEL_VERIFIED, verified), (GERRIT_LABEL_REVIEWED, reviewed))
 return result

def _handleLegacyResult ( result ) : if ( not isinstance ( result , dict ) ) : warnings . warn ( 'The Gerrit status callback uses the old way to communicate results.  The outcome might be not what is expected.' ) ( message , verified , reviewed ) = result result = makeReviewResult ( message , ( GERRIT_LABEL_VERIFIED , verified ) , ( GERRIT_LABEL_REVIEWED , reviewed ) ) return result
make sure the result is backward compatible .