Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2349)

Unified Diff: Objects/bytearrayobject.c

Issue 14203: bytearray_getbuffer: unnecessary code
Patch Set: Created 1 year, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Objects/bytearrayobject.c
+++ b/Objects/bytearrayobject.c
@@ -56,10 +56,7 @@
{
int ret;
void *ptr;
- if (view == NULL) {
- obj->ob_exports++;
- return 0;
- }
+
ptr = (void *) PyByteArray_AS_STRING(obj);
ret = PyBuffer_FillInfo(view, (PyObject*)obj, ptr, Py_SIZE(obj), 0, flags);
if (ret >= 0) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7