No owner of real property within the City or agent having control of such property shall permit any gate or gates to be, or to remain, so constructed as to enable the same to swing over or across any portion of the sidewalk in front of such premises, unless such gate is hung with self-closing hinges or has attached thereto, weights, springs or other devices so that the gate will swing back from the sidewalk and not obstruct the same.