summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-09-03 20:44:02 (GMT)
committerGuido van Rossum <guido@python.org>1992-09-03 20:44:02 (GMT)
commit67daef567fe56702d211fba91ae06f9ea756dbb6 (patch)
tree2409ab0894dd756000612f5ecaa63a77ff65c8f9 /Objects
parenta5f61380f837418855ca018b646d52afb637a6f5 (diff)
downloadcpython-67daef567fe56702d211fba91ae06f9ea756dbb6.zip
cpython-67daef567fe56702d211fba91ae06f9ea756dbb6.tar.gz
cpython-67daef567fe56702d211fba91ae06f9ea756dbb6.tar.bz2
Remove bogus type-and-refcnt setting from newsizedstringobject().
Diffstat (limited to 'Objects')
-rw-r--r--Objects/stringobject.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index b494f96..9f8de92 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -132,9 +132,6 @@ stringrepr(op)
register int i;
register char c;
register char *p;
- NEWREF(v);
- v->ob_type = &Stringtype;
- ((stringobject *)v)->ob_size = newsize;
p = ((stringobject *)v)->ob_sval;
*p++ = '\'';
for (i = 0; i < op->ob_size; i++) {