Kan. Stat. Ann. § 66-299
This act shall not apply to any railway company or corporation, or the assignee or lessee thereof, whose road is enclosed with a good and lawful fence to prevent such animal from being on such road.
L. 1874, ch. 94, § 5; March 4; R.S. 1923, 66-299.