Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Strip debug info from docker_machine ip command #4995

Merged
merged 2 commits into from
Dec 16, 2019

Conversation

maaktweluit
Copy link
Contributor

No description provided.

@maaktweluit maaktweluit force-pushed the mwu/b0.22/win-idna-error branch from 30142ca to 1d345ef Compare December 16, 2019 11:56
ip = None
assert isinstance(raw_ip, str)
for line in raw_ip.splitlines():
if line and line[0].isnumeric():
Copy link
Contributor

@mfranciszkiewicz mfranciszkiewicz Dec 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The line[0].isnumeric() optimization is IMHO very output specific and not really needed here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its a nitty speed improvement, was thinking its faster to check first if the first character is numeric, then parse the whole IP

@codecov
Copy link

codecov bot commented Dec 16, 2019

Codecov Report

Merging #4995 into b0.22 will decrease coverage by <.01%.
The diff coverage is 84.61%.

@@            Coverage Diff             @@
##            b0.22    #4995      +/-   ##
==========================================
- Coverage   90.09%   90.09%   -0.01%     
==========================================
  Files         233      233              
  Lines       21875    21886      +11     
==========================================
+ Hits        19709    19718       +9     
- Misses       2166     2168       +2

@maaktweluit maaktweluit merged commit b4c6fa7 into b0.22 Dec 16, 2019
@maaktweluit maaktweluit deleted the mwu/b0.22/win-idna-error branch December 16, 2019 15:33
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants