Index: Python/compile.c =================================================================== --- Python/compile.c (revision 67339) +++ Python/compile.c (working copy) @@ -2389,11 +2389,9 @@ case AugStore: break; case Del: - PyErr_Format(PyExc_SyntaxError, - "can not delete variable '%s' referenced " - "in nested scope", - PyString_AS_STRING(name)); Py_DECREF(mangled); + compiler_error(c, "can not delete variable " + "referenced in nested scope"); return 0; case Param: default: