-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/mercurial/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/mercurial/fancyopts.pyc

ó
Ì\,Tc@sAddlZddlZddlmZd„Zed„ZdS(iÿÿÿÿN(t_c
Csg}d|kr<|jdƒ}||d}|| }ntj|||ƒ\}}g}xŒ|rë|jdƒ}|rÛ|ddkrÛt|ƒdkrÛ|jd|ƒtj|||ƒ\}}	||}|	}q`|j|ƒq`W|j|ƒ||fS(sºParse options mostly like getopt.gnu_getopt.

    This is different from getopt.gnu_getopt in that an argument of - will
    become an argument of - instead of vanishing completely.
    s--iit-(tindextgetopttpoptlentinserttappendtextend(
targstoptionstlongoptionst	extraargst	stopindextoptst	parseargstargttoptstnewparseargs((s7/usr/lib/python2.7/dist-packages/mercurial/fancyopts.pyt	gnugetopts"
	(
	
cCs·g}d}i}i}x<|D]4}t|ƒdkrO|\}	}
}}}
n|\}	}
}}|
}|
jddƒ}
|
|d|	<|d|<|||
<t|tƒrº|||
<n#t|ƒrÓd
||
<n
|||
<|d
kpþ|tkpþ|tks*|	r|	d7}	n|r*|d7}q*n|	r=||	7}n|
r|j|ƒqqW|rft	}n	t
j
}||||ƒ\}}x)|D]!\}}||}
t||
ƒ}|ttƒkrÝ||
|ƒ||
<qŽ|tdƒkr9yt
|ƒ||
<Wq¯tk
r5tjtd	ƒ||fƒ‚q¯XqŽ|tdƒkrX|||
<qŽ|tgƒkr~||
j|ƒqŽ|td
ƒks¢|ttƒkrŽt||
<qŽqŽW|S(s
    read args, parse options, and store options in state

    each option is a tuple of:

      short option or ''
      long option
      default value
      description
      option value label(optional)

    option types include:

      boolean or none - option sets variable in state to true
      string - parameter string is stored in state
      list - parameter string is added to a list
      integer - parameter strings is stored as int
      function - call function with parameter

    non-option args are returned
    tiRRs--t:t=is,invalid value %r for option %s, expected intN(Rtreplacet
isinstancetlisttcallabletNonetTruetFalseRRRttypet	fancyoptstintt
ValueErrortutiltAbortR(R	R
tstatetgnutnamelistt	shortlisttargmaptdefmaptoptiontshorttnametdefaulttcommenttdummytonametparseRtopttvaltt((s7/usr/lib/python2.7/dist-packages/mercurial/fancyopts.pyR&s`



$

		


$(RR"ti18nRRRR(((s7/usr/lib/python2.7/dist-packages/mercurial/fancyopts.pyt<module>s	

Copyright © 2017 || Recoded By Mr.Bumblebee