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
809a971f
Commit
809a971f
authored
Jan 14, 2012
by
Gregory P. Smith
Browse files
Options
Browse Files
Download
Plain Diff
merge heads
parents
c7843842
d468cbb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
Modules/_datetimemodule.c
Modules/_datetimemodule.c
+1
-15
No files found.
Modules/_datetimemodule.c
View file @
809a971f
...
@@ -2755,24 +2755,10 @@ date_replace(PyDateTime_Date *self, PyObject *args, PyObject *kw)
...
@@ -2755,24 +2755,10 @@ date_replace(PyDateTime_Date *self, PyObject *args, PyObject *kw)
return
clone
;
return
clone
;
}
}
/*
Borrowed from stringobject.c, originally it was string_hash()
*/
static
Py_hash_t
static
Py_hash_t
generic_hash
(
unsigned
char
*
data
,
int
len
)
generic_hash
(
unsigned
char
*
data
,
int
len
)
{
{
register
unsigned
char
*
p
;
return
_Py_HashBytes
(
data
,
len
);
register
Py_uhash_t
x
;
p
=
(
unsigned
char
*
)
data
;
x
=
(
Py_uhash_t
)
*
p
<<
7
;
while
(
--
len
>=
0
)
x
=
(
1000003U
*
x
)
^
(
Py_uhash_t
)
*
p
++
;
x
^=
(
Py_uhash_t
)
len
;
if
(
x
==
-
1
)
x
=
-
2
;
return
x
;
}
}
...
...
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