2424#include "pycore_pystate.h" // _PyInterpreterState_GET()
2525#include "pycore_setobject.h" // _PySet_NextEntry()
2626#include "pycore_sysmodule.h" // _PySys_ClearAttrString()
27- #include "pycore_traceback.h"
2827#include "pycore_time.h" // _PyTime_AsMicroseconds()
28+ #include "pycore_traceback.h"
2929#include "pycore_unicodeobject.h" // _PyUnicode_AsUTF8NoNUL()
3030#include "pycore_weakref.h" // _PyWeakref_GET_REF()
3131
@@ -3909,8 +3909,7 @@ _PyImport_LoadLazyImportTstate(PyThreadState *tstate, PyObject *lazy_import)
39093909
39103910 PyObject * globals = PyEval_GetGlobals ();
39113911
3912- if (PyMapping_GetOptionalItem (lz -> lz_builtins , & _Py_ID (__import__ ), & import_func ) < 0 )
3913- {
3912+ if (PyMapping_GetOptionalItem (lz -> lz_builtins , & _Py_ID (__import__ ), & import_func ) < 0 ) {
39143913 goto error ;
39153914 }
39163915 if (import_func == NULL ) {
@@ -4097,7 +4096,7 @@ get_abs_name(PyThreadState *tstate, PyObject *name, PyObject *globals, int level
40974096 return resolve_name (tstate , name , globals , level );
40984097 }
40994098 if (PyUnicode_GET_LENGTH (name ) == 0 ) {
4100- _PyErr_SetString (tstate , PyExc_ValueError , "empty module name" );
4099+ _PyErr_SetString (tstate , PyExc_ValueError , "Empty module name" );
41014100 return NULL ;
41024101 }
41034102 return Py_NewRef (name );
@@ -4124,7 +4123,7 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *globals,
41244123 int has_from ;
41254124
41264125 if (name == NULL ) {
4127- _PyErr_SetString (tstate , PyExc_ValueError , "empty module name" );
4126+ _PyErr_SetString (tstate , PyExc_ValueError , "Empty module name" );
41284127 goto error ;
41294128 }
41304129
@@ -4343,8 +4342,7 @@ register_lazy_on_parent(PyThreadState *tstate, PyObject *name, PyObject *builtin
43434342 if (lazy_module_attr == NULL ) {
43444343 goto done ;
43454344 }
4346- if (PyDict_SetItem (parent_dict , child , lazy_module_attr ) < 0 )
4347- {
4345+ if (PyDict_SetItem (parent_dict , child , lazy_module_attr ) < 0 ) {
43484346 Py_DECREF (lazy_module_attr );
43494347 goto done ;
43504348 }
0 commit comments