mru: simplify code

(integrated from master branch change 8d0fe21 by Todd Whiteman <toddw@activestate.com>)