From 67daef567fe56702d211fba91ae06f9ea756dbb6 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 3 Sep 1992 20:44:02 +0000 Subject: Remove bogus type-and-refcnt setting from newsizedstringobject(). --- Objects/stringobject.c | 3 --- 1 file changed, 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++) { -- cgit v0.12