File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -104,14 +104,14 @@ func getPyErr() error {
104
104
if isPyNoMemoryError () {
105
105
// Fetching stacktrace requires some memory,
106
106
// so just return an error without stacktrace.
107
- return pyNoMemoryError
107
+ return errPyNoMemory
108
108
}
109
109
110
110
// TODO: consider to reserve excInfo
111
111
excInfo := Object {p : C .PyTuple_New (3 )}
112
112
if excInfo .p == nil {
113
113
if isPyNoMemoryError () {
114
- return pyNoMemoryError
114
+ return errPyNoMemory
115
115
}
116
116
return getPyErr ()
117
117
}
@@ -168,6 +168,6 @@ func isPyNoMemoryError() bool {
168
168
return C .PyErr_ExceptionMatches (C .PyExc_MemoryError ) != 0
169
169
}
170
170
171
- // pyNoMemoryError is an error value representing an allocation error on Python.
171
+ // errPyNoMemory is an error value representing an allocation error on Python.
172
172
// This is not a pyErr because it is difficult to extract stacktrace from Python when the heap is exhaused.
173
- var pyNoMemoryError = errors .New ("python interpreter failed to allocate memory" )
173
+ var errPyNoMemory = errors .New ("python interpreter failed to allocate memory" )
You can’t perform that action at this time.
0 commit comments