rest: improve python 2/3 compatibility for open()

parent 07f98c37
...@@ -19,6 +19,7 @@ from base64 import b64encode ...@@ -19,6 +19,7 @@ from base64 import b64encode
from cryptography import x509 from cryptography import x509
from cryptography.hazmat.backends import default_backend from cryptography.hazmat.backends import default_backend
import datetime import datetime
from io import open
import json import json
import mimetypes import mimetypes
import os import os
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment