mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-22 21:01:28 -05:00
python3 compatibility + webapp to flask refactoring
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import httplib
|
||||
try:
|
||||
import httplib
|
||||
except:
|
||||
import http.client as httplib #for python3
|
||||
import urllib
|
||||
import hashlib
|
||||
import hmac
|
||||
@@ -7,6 +10,8 @@ import base64
|
||||
from datetime import datetime
|
||||
from xml.etree.ElementTree import XML
|
||||
|
||||
if 1/2 != 0: basestring=str
|
||||
|
||||
def encodeUnicodez(args):
|
||||
if args and type(args)==type({}):
|
||||
for key,value in args.items():
|
||||
|
||||
Reference in New Issue
Block a user