@@ -2646,7 +2646,8 @@ def __init__(self, raw=None, qb64b=None, qb64=None, qb2=None,
2646
2646
raise ValidationError ("Invalid code = {} for Bexter."
2647
2647
"" .format (self .code ))
2648
2648
2649
- def _rawify (self , bext ):
2649
+ @staticmethod
2650
+ def _rawify (bext ):
2650
2651
"""Returns raw value equivalent of Base64 text.
2651
2652
Suitable for variable sized matter
2652
2653
@@ -2661,7 +2662,7 @@ def _rawify(self, bext):
2661
2662
return raw # raw binary equivalent of text
2662
2663
2663
2664
@classmethod
2664
- def _decode (cls , raw , code ):
2665
+ def _derawify (cls , raw , code ):
2665
2666
"""Returns decoded raw as B64 str aka bext value
2666
2667
2667
2668
Returns:
@@ -2684,16 +2685,7 @@ def bext(self):
2684
2685
Property bext: Base64 text value portion of qualified b64 str
2685
2686
Returns the value portion of .qb64 with text code and leader removed
2686
2687
"""
2687
- return self ._decode (raw = self .raw , code = self .code )
2688
- #_, _, _, _, ls = self.Sizes[self.code]
2689
- #bext = encodeB64(bytes([0] * ls) + self.raw)
2690
- #ws = 0
2691
- #if ls == 0 and bext:
2692
- #if bext[0] == ord(b'A'): # strip leading 'A' zero pad
2693
- #ws = 1
2694
- #else:
2695
- #ws = (ls + 1) % 4
2696
- #return bext.decode('utf-8')[ws:]
2688
+ return self ._derawify (raw = self .raw , code = self .code )
2697
2689
2698
2690
2699
2691
class Pather (Bexter ):
0 commit comments