From 395acdb09b16edf253d3ddd763be7268c8d989b5 Mon Sep 17 00:00:00 2001 From: Mahendra Date: Tue, 20 Mar 2018 16:21:50 +0530 Subject: [PATCH] fix bug raises while formatting fix too many values to unpack issue through after formatting --- src/addresses.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/addresses.py b/src/addresses.py index ac79a8ef..f0e93d27 100644 --- a/src/addresses.py +++ b/src/addresses.py @@ -253,13 +253,13 @@ def decodeAddress(address): bytesUsedByStreamNumber:-4] if len(embeddedRipeData) == 19: return status, addressVersionNumber, streamNumber, \ - '\x00', embeddedRipeData + '\x00' + embeddedRipeData elif len(embeddedRipeData) == 20: return status, addressVersionNumber, streamNumber, \ embeddedRipeData elif len(embeddedRipeData) == 18: return status, addressVersionNumber, streamNumber, \ - '\x00\x00', embeddedRipeData + '\x00\x00' + embeddedRipeData elif len(embeddedRipeData) < 18: return 'ripetooshort', 0, 0, "" elif len(embeddedRipeData) > 20: @@ -281,7 +281,7 @@ def decodeAddress(address): else: x00string = '\x00' * (20 - len(embeddedRipeData)) return status, addressVersionNumber, streamNumber,\ - x00string, embeddedRipeData + x00string + embeddedRipeData def addBMIfNotPresent(address):