Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c4b78a3e
Commit
c4b78a3e
authored
Jun 01, 2012
by
Hynek Schlawack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#14814: Remove 2.x's new-style classes syntax from ipaddress
parent
67ee1d05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/ipaddress.py
Lib/ipaddress.py
+3
-3
No files found.
Lib/ipaddress.py
View file @
c4b78a3e
...
...
@@ -400,7 +400,7 @@ def get_mixed_type_key(obj):
return
NotImplemented
class
_IPAddressBase
(
object
)
:
class
_IPAddressBase
:
"""The mother class."""
...
...
@@ -975,7 +975,7 @@ class _BaseNetwork(_IPAddressBase):
return
t
.
__class__
(
'%s/%d'
%
(
str
(
t
.
network_address
),
t
.
prefixlen
))
class
_BaseV4
(
object
)
:
class
_BaseV4
:
"""Base IPv4 object.
...
...
@@ -1511,7 +1511,7 @@ class IPv4Network(_BaseV4, _BaseNetwork):
return
'%s/%s'
%
(
str
(
self
.
network_address
),
str
(
self
.
hostmask
))
class
_BaseV6
(
object
)
:
class
_BaseV6
:
"""Base IPv6 object.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment