Any person or company which 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 and shrubs properly trimmed, subject to the supervision of the director of public works, so that no injury shall befall either the poles and wires or the shrubs and trees by their contact.