(self, text)
Put unicode text on clipboard.
Put unicode text on clipboard.
Put unicode text on clipboard .
def copy(self, text):
        """Put unicode text on clipboard."""
        try:
            p = subprocess.Popen('pbcopy', stdin=subprocess.PIPE)
            p.communicate(text.encode(ENCODING, 'replace'))
        except subprocess.CalledProcessError:
            pass
def copy ( self , text ) : try : p = subprocess . Popen ( 'pbcopy' , stdin = subprocess . PIPE ) p . communicate ( text . encode ( ENCODING , 'replace' ) ) except subprocess . CalledProcessError : pass