Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
9467c481
Commit
9467c481
authored
Jul 18, 2011
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CythonUtilityCode Py3 compat
parent
4078e677
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Cython/Compiler/Scanning.py
Cython/Compiler/Scanning.py
+5
-4
No files found.
Cython/Compiler/Scanning.py
View file @
9467c481
...
@@ -242,10 +242,11 @@ class StringSourceDescriptor(SourceDescriptor):
...
@@ -242,10 +242,11 @@ class StringSourceDescriptor(SourceDescriptor):
def
get_filenametable_entry
(
self
):
def
get_filenametable_entry
(
self
):
return
"stringsource"
return
"stringsource"
# Do not hash on the name, an identical string source should be the
def
__hash__
(
self
):
# same object (name is often defaulted in other places)
return
id
(
self
)
# def __hash__(self):
# Do not hash on the name, an identical string source should be the
# return hash(self.name)
# same object (name is often defaulted in other places)
# return hash(self.name)
def
__eq__
(
self
,
other
):
def
__eq__
(
self
,
other
):
return
isinstance
(
other
,
StringSourceDescriptor
)
and
self
.
name
==
other
.
name
return
isinstance
(
other
,
StringSourceDescriptor
)
and
self
.
name
==
other
.
name
...
...
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