Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
IPRanges
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
713
Warden
IPRanges
Commits
bb298e14
Commit
bb298e14
authored
5 years ago
by
Jan Zerdik
Browse files
Options
Downloads
Patches
Plain Diff
Deletion of unused function
parent
69204d1a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ipranges.py
+0
-9
0 additions, 9 deletions
ipranges.py
with
0 additions
and
9 deletions
ipranges.py
+
0
−
9
View file @
bb298e14
...
@@ -11,7 +11,6 @@ import socket
...
@@ -11,7 +11,6 @@ import socket
import
struct
import
struct
import
numbers
import
numbers
import
sys
import
sys
import
operator
try
:
try
:
basestring
basestring
...
@@ -148,14 +147,6 @@ class IPNetBase(IPBase):
...
@@ -148,14 +147,6 @@ class IPNetBase(IPBase):
def
__hash__
(
self
):
def
__hash__
(
self
):
return
hash
((
self
.
base
,
self
.
mask
))
return
hash
((
self
.
base
,
self
.
mask
))
def
check_types
(
f
):
def
wrapper
(
a
,
b
):
raise
RuntimeError
(
"
AAAa
"
)
if
not
isinstance
(
b
,
type
(
a
)):
return
NotImplemented
else
:
return
f
(
a
,
b
)
_opperations
=
{
'
__lt__
'
:
'
<
'
,
'
__le__
'
:
'
<=
'
,
'
__gt__
'
:
'
>
'
,
'
__ge__
'
:
'
>=
'
}
_opperations
=
{
'
__lt__
'
:
'
<
'
,
'
__le__
'
:
'
<=
'
,
'
__gt__
'
:
'
>
'
,
'
__ge__
'
:
'
>=
'
}
class
IPAddrBase
(
IPBase
):
class
IPAddrBase
(
IPBase
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment