def get(self): """ Generate the code. Apply encoding, in the correct order, of course. """ # Apply base64 encoding. self.payload = base64_wrapper(self.name, self.payload, self.args) # Apply URL-encoding if self.args.urlencode is True: self.payload = to_urlencode(self.payload) return self.payload