<s> from . base import Clipboard , ClipboardData <EOL> __all__ = ( <EOL> '<STR_LIT>' , <EOL> ) <EOL> class InMemoryClipboard ( Clipboard ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> self . _data = None <EOL> def set_data ( self , data ) : <EOL> assert isinstance ( data , ClipboardData ) <EOL> self . _data = data <EOL> def get_data ( self ) : <EOL> return self . _data or ClipboardData ( ) </s>
