Skip to content

bpo-29890: Fix IPv*Interface constructor when dealing with tuple#816

Closed
louisom wants to merge 1 commit into
python:masterfrom
louisom:fix_ipaddress_interface
Closed

bpo-29890: Fix IPv*Interface constructor when dealing with tuple#816
louisom wants to merge 1 commit into
python:masterfrom
louisom:fix_ipaddress_interface

Conversation

@louisom

@louisom louisom commented Mar 25, 2017

Copy link
Copy Markdown
Contributor

No description provided.

@mention-bot

Copy link
Copy Markdown

@grapherd, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ncoghlan, @serhiy-storchaka and @hynek to be potential reviewers.

@brettcannon brettcannon added the type-bug An unexpected behavior, bug, or error label Mar 27, 2017
Comment thread Lib/ipaddress.py

self.network = IPv4Network(address, strict=False)
self.netmask = self.network.netmask
self.netmask, self._prefixlen = self._make_netmask(arg)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it necessary to calculating again using self._make_netmask? Is self.netmask, self._prefixlen = self.network.netmask, self.network.prefixlen not enough?

@auvipy auvipy left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

plz re base

@csabella

Copy link
Copy Markdown
Contributor

This change is from an unknown repository and this GitHub account is no longer active. I'm going to close this PR so that another one could be opened to replace it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants