File tree Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -71,18 +71,14 @@ def __init__(self,
7171 self .encoder = encoder
7272
7373 def encode (self ) -> bytes :
74- """
75- Encode string for privacy and encryption.
76- """
74+ """Encode string for privacy and encryption."""
7775 msg_bytes = self .message .encode (self .encoder )
7876 string_bytes = base64 .b64encode (msg_bytes )
7977 string = string_bytes .decode (self .encoder )
8078 return string
8179
8280 def decode (self ) -> bytes :
83- """
84- Decode string for privacy and encryption.
85- """
81+ """Decode string for privacy and encryption."""
8682 msg_bytes = self .message .encode (self .encoder )
8783 string_bytes = base64 .b64decode (msg_bytes )
8884 string = string_bytes .decode (self .encoder )
Original file line number Diff line number Diff line change 1- """
2- this has all of imports and other init configs and other main
3- """
1+ """this has all of imports and other init configs and other main"""
42import warnings
53
64from flask import *
Original file line number Diff line number Diff line change 44
55
66def encode (message : str ) -> bytes :
7- """
8- Encode string for privacy and encryption.
9- """
7+ """Encode string for privacy and encryption."""
108 msg_bytes = message .encode ("latin-1" )
119 string_bytes = base64 .b64encode (msg_bytes )
1210 string = string_bytes .decode ("latin-1" )
1311 return string
1412
1513
1614def decode (message : str ) -> bytes :
17- """
18- Decode string for privacy and encryption.
19- """
15+ """Decode string for privacy and encryption."""
2016 msg_bytes = message .encode ("latin-1" )
2117 string_bytes = base64 .b64decode (msg_bytes )
2218 string = string_bytes .decode ("latin-1" )
You can’t perform that action at this time.
0 commit comments