Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
L
ligo-segments
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lscsoft
ligo-segments
Commits
aabcb7ea
Verified
Commit
aabcb7ea
authored
Jun 26, 2018
by
Duncan Macleod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
segment.__contains__: fixed python implementation bug
need to catch actual error thrown when `int` given
parent
d39c905f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ligo/segments.py
ligo/segments.py
+1
-1
No files found.
ligo/segments.py
View file @
aabcb7ea
...
...
@@ -449,7 +449,7 @@ class segment(tuple):
"""
try
:
a
,
b
=
other
except
ValueError
:
except
(
ValueError
,
TypeError
)
:
return
self
[
0
]
<=
other
<
self
[
1
]
else
:
return
(
self
[
0
]
<=
a
)
and
(
self
[
1
]
>=
b
)
...
...
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