aboutsummaryrefslogtreecommitdiff
path: root/cgi/framework.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/framework.py')
-rw-r--r--cgi/framework.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cgi/framework.py b/cgi/framework.py
index 86683dd..38ba2ad 100644
--- a/cgi/framework.py
+++ b/cgi/framework.py
@@ -306,6 +306,10 @@ def getb64(data):
return base64.b64encode(bytes(data, 'utf-8')).decode('utf-8')
+def decodeb64(data):
+ return base64.b64decode(bytes(data, 'utf-8'))
+
+
def getRandomLine(filename):
import random
f = open(filename, 'r')