@internationalizeDocstring
    def base(self, irc, msg, args, frm, to, number):
        """<fromBase> [<toBase>] <number>

        Converts <number> from base <fromBase> to base <toBase>.
        If <toBase> is left out, it converts to decimal.
        """
        if not number:
            number = str(to)
            to = 10
        try:
            irc.reply(self._convertBaseToBase(number, to, frm))
        except __HOLE__:
            irc.error(_('Invalid <number> for base %s: %s') % (frm, number))
dataset/ETHPy150Open ProgVal/Limnoria/plugins/Math/plugin.py/Math.base