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
[py] Fix RelativeBy near()
docs, fix bugs and deprecations in webserver.py
#10077
[py] Fix RelativeBy near()
docs, fix bugs and deprecations in webserver.py
#10077
Conversation
Refactored the webserver.py code to use some modern python language features and changed invocations of deprecated functions in the stop() method. Running webserver.py now directly works as a bug in the script forced both host and port to be the port.
above()
docs, fix bugs and deprecations in webserver.py
above()
docs, fix bugs and deprecations in webserver.py
near()
docs, fix bugs and deprecations in webserver.py
default=DEFAULT_PORT) | ||
|
||
opts, args = parser.parse_args(argv[1:]) | ||
if args: | ||
parser.error("wrong number of arguments") # Will exit | ||
|
||
server = SimpleWebServer(opts.port) | ||
server = SimpleWebServer(port=opts.port) |
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.
was mistakenly setting the host=
as the port.
near()
docs, fix bugs and deprecations in webserver.py
near()
docs, fix bugs and deprecations in webserver.py
Codecov Report
@@ Coverage Diff @@
## trunk #10077 +/- ##
=======================================
Coverage 44.87% 44.87%
=======================================
Files 86 86
Lines 5676 5676
Branches 263 263
=======================================
Hits 2547 2547
Misses 2866 2866
Partials 263 263
Continue to review full report at Codecov.
|
Kudos, SonarCloud Quality Gate passed! |
SeleniumHQ#10077) Refactored the webserver.py code to use some modern python language features and changed invocations of deprecated functions in the stop() method. Running webserver.py now directly works as a bug in the script forced both host and port to be the port. Co-authored-by: David Burns <[email protected]>
Description
Fixed up a discrepency when invoking webserver.py standalone where host was set as the port number provided. Tidied up some of the webserver code was I was in there and stopped called a deprecated function in the
stop()
method of theSimpleWebServer
Types of changes
Checklist