I don't much like the current approach anyway. If you like, rewrite that part so that has a static mapping between the two names, like:
flagmap = { cups.CUPS_PRINTER_AUTHENTICATED: 'authenticated', cups.CUPS_PRINTER_BIND: 'bind', ... } for flag, name in flagmap.iteritems (): setattr(self, name, bool(self.type & flag)) Then you don't need the locale or blacklist handling. -- system-config-printer.py crashed with Error in setlocale() in Jaunty BETA https://bugs.launchpad.net/bugs/340932 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs