Inflation eases in July as gasoline and grocery prices fall