@staticmethod
    def write_in_tmpfile(text, tmpfile):
        try:
            tmpfile.write(text)
        except TypeError:
            tmpfile.write(str.encode(text))
Write the given text in the given tmpfile in python2 and python3.
dataset/ETHPy150Open ultrabug/py3status/py3status/i3status.py/I3status.write_in_tmpfile