def _qname(self, name):
        if name[0]:
            # The name is in a non-empty namespace
            prefix = self._current_context[name[0]]
            if prefix:
                # If it is not the default namespace, prepend the prefix
                return prefix + ":" + name[1]
        # Return the unqualified name
        return name[1]

    # ContentHandler methods
Related to #305
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/xml/sax/saxutils.py/XMLGenerator._qname--crossover with--dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/smpp/test/test_smpp_server.py/BindTestCases.test_unbind_user_session_and_ban