;ò
ÎÑAHc           @   s8   d  k  Z e i i ƒ  Z d d „ Z e i d e ƒ d  S(   Ns    c   
      C   s  d k  } d k } | i ƒ  } | i ƒ  t | ƒ d j o$ | i | i	 ƒ }	 | i ƒ  |	 Sn |  i ƒ  } | i ƒ  i d ƒ o6 | | i d ƒ d i ƒ  } t | i | ƒ ƒ } n# | d } d i |  i | ƒ ƒ } | i ƒ  | i | ƒ | i ƒ  d GH| GHd S(   s}  Save a set of lines to the clipboard.

    Usage:\
      %clip n1-n2 n3-n4 ... n5 .. n6 ...

    This function uses the same syntax as %macro for line extraction, but
    instead of creating a macro it saves the resulting string to the
    clipboard.
    
    When used without arguments, this returns the text contents of the clipboard. 
    E.g.
    
    mytext = %clip
    
    Ni    s   =i   s    s/   The following text was written to the clipboard(   s   win32clipboards   cls   win32cons   parameter_ss   splits   argss   OpenClipboards   lens   GetClipboardDatas   CF_TEXTs   datas   CloseClipboards   selfs   getapis   apis   lstrips
   startswiths   indexs   strips   rests   strs   evs   vals   rangess   joins   extract_input_slicess   EmptyClipboards   SetClipboardText(
   s   selfs   parameter_ss   vals   cls   argss   rangess   apis   rests   win32cons   data(    (    sM   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/win32clip.pys   clip_f   s(     		




s   clip(   s   IPython.ipapis   IPythons   ipapis   gets   ips   clip_fs   expose_magic(   s   IPythons   ips   clip_f(    (    sM   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/win32clip.pys   ?   s   	(