-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3 compatiability fixes; measurement result example changes #230
base: master
Are you sure you want to change the base?
Changes from 5 commits
98cf95f
6c5d68b
c2a885d
f267ca7
b36ee8d
c32d42b
cf73e70
71df96e
9866934
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from __future__ import (absolute_import, division, print_function) | ||
|
||
import StringIO | ||
from io import StringIO | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You may needs to treat things as |
||
import logging | ||
import datetime | ||
import os | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,6 @@ | |
|
||
from dateutil.parser import parse | ||
|
||
from lxml import etree | ||
from lxml.etree import XMLParser | ||
from lxml.etree import XMLSyntaxError | ||
|
||
import pytz | ||
|
||
from spyne.application import Application | ||
from spyne.const.http import HTTP_405 | ||
from spyne.error import RequestNotAllowed | ||
|
@@ -27,6 +21,18 @@ | |
from spyne.server.http import HttpTransportContext | ||
from spyne.server.wsgi import WsgiApplication | ||
|
||
import sys | ||
print('sys.path!!!!') | ||
print(sys.path) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm guessing this is left over debugging statements. PS: using env will give you path isolation and reduce headaches. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup, thanks, removed now. |
||
|
||
import pytz | ||
from lxml import etree | ||
from lxml.etree import XMLParser | ||
from lxml.etree import XMLSyntaxError | ||
|
||
|
||
|
||
|
||
from wof.WofWsdls import WofWSDL_1_0, WofWSDL_1_1 | ||
from wof.apps.spyned_1_0 import TWOFService as wml10 | ||
from wof.apps.spyned_1_1 import TWOFService as wml11 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that I don't have any stake in this so when I say that in almost 2019 and going all in for Python 3 is 👍 take it with a grain of salt.
If Python 2 and 3 support is needed you may look into tools like
six
and lines like this one, for example, would besix.string_types
instead.