parameters: (self, bytestring)
return_statement: return bytestring[:l]
docstring: Remove the PKCS#7 padding from a text string
docstring_summary: Remove the PKCS#7 padding from a text string
docstring_tokens: Remove the PKCS#7 padding from a text string
function: def decode(self, bytestring):
          '''
          Remove the PKCS#7 padding from a text string
          '''
          val = bytestring[-1]
          if val > self.k:
              raise ValueError('Input is not padded or padding is corrupt')
          l = len(bytestring) - val
          return bytestring[:l]
function_tokens: def decode ( self , bytestring ) : val = bytestring [ - 1 ] if val > self . k : raise ValueError ( 'Input is not padded or padding is corrupt' ) l = len ( bytestring ) - val return bytestring [ : l ]