Any person who maintains poles and wires in the streets, alleys, or other public places of the city shall keep such wires and poles free and away from any nearby trees or shrubs in such places, and keep all such trees or shrubs properly trimmed so that no injury shall befall either the poles and wires or the shrubs and trees by their contact.