B “äî\ ã@s‚dZdZdZdZdZddlZGdd„deƒZGd d „d eƒZGd d „d eƒZ Gd d„deƒZ dZ dd„Z e  dej¡Zdd„ZdS)z"Convert to and from Roman numeralsz&Mark Pilgrim (f8dy@diveintopython.org)z1.4z 8 August 2001agCopyright (c) 2001 Mark Pilgrim This program is part of "Dive Into Python", a free Python tutorial for experienced programmers. Visit http://diveintopython.org/ for the latest version. This program is free software; you can redistribute it and/or modify it under the terms of the Python 2.1.1 license, available at http://www.python.org/2.1.1/license.html éNc@s eZdZdS)Ú RomanErrorN)Ú__name__Ú __module__Ú __qualname__©rrú8/tmp/pip-build-uw_ogi45/docutils/docutils/utils/roman.pyrsrc@s eZdZdS)ÚOutOfRangeErrorN)rrrrrrrrsrc@s eZdZdS)ÚNotIntegerErrorN)rrrrrrrr sr c@s eZdZdS)ÚInvalidRomanNumeralErrorN)rrrrrrrr sr ) )ÚMiè)ZCMi„)ÚDiô)ZCDi)ÚCéd)ZXCéZ)ÚLé2)ZXLé()ÚXé )ZIXé )ÚVé)ZIVé)ÚIécCsjd|krdksntdƒ‚t|ƒ|kr2tdƒ‚d}x.tD]&\}}x||kr`||7}||8}qFWqs