Skip to content

Commit 6b689f0

Browse files
authored
Use PyUnicode_InternFromString of static strs in catom (#241)
1 parent 0750392 commit 6b689f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

atom/src/catom.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,13 +563,13 @@ bool CAtom::Ready()
563563
{
564564
return false;
565565
}
566-
atom_members = PyUnicode_FromString( "__atom_members__" );
566+
atom_members = PyUnicode_InternFromString( "__atom_members__" );
567567
if( !atom_members )
568568
{
569569
return false;
570570
}
571571

572-
atom_flags = PyUnicode_FromString( "--frozen" );
572+
atom_flags = PyUnicode_InternFromString( "--frozen" );
573573
if( !atom_flags )
574574
return false;
575575

0 commit comments

Comments
 (0)