-
Notifications
You must be signed in to change notification settings - Fork 80
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
Fix wrong import in simple_tcp_server example #47
Fix wrong import in simple_tcp_server example #47
Conversation
93b28ce
to
4e02abd
Compare
@@ -5,7 +5,7 @@ | |||
from collections import defaultdict | |||
|
|||
from umodbus import conf | |||
from umodbus.server import get_server | |||
from umodbus.server.tcp import get_server | |||
from umodbus.server.tcp import RequestHandler |
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.
Imports on line 8 and 9 can be joined in a single import.
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.
Agree, I'll change ASAP
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.
Ok, done.
Travis reports code is broken in pypy3 but I don't think it's because of me
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.
You need to apply the same fix on the example in the README.md as well. Sorry, I forgot to mention it before.
Travis is not broken because of these commits. Travis builds for PyPy are acting weird. I already created an issue #42 .
4e02abd
to
a0dcd8f
Compare
1 similar comment
@@ -35,7 +35,7 @@ Creating a Modbus TCP server is easy: | |||
from collections import defaultdict | |||
|
|||
from umodbus import conf | |||
from umodbus.server import get_server |
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.
Imports on line 8 and 9 can be joined in a single import.
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.
I think it it should be ok now
a0dcd8f
to
4edde8f
Compare
Thanks! Your changes are in release 0.8.2. |
No description provided.