def center_glyph(glyph):
    whitespace = glyph.leftMargin + glyph.rightMargin
    glyph.leftMargin = whitespace / 2
    glyph.rightMargin = whitespace / 2
Test ObtainLock().
dataset/ETHPy150Open gferreira/hTools2/Lib/hTools2/modules/glyphutils.py/center_glyph--crossover with--dataset/ETHPy150Open google/simian/src/tests/simian/mac/common/gae_util_test.py/GaeUtilModuleTest.testObtainLockWhenTimeoutTrue