Repository URL to install this package:
|
Version:
4.0.105 ▾
|
ó
©EYc @ sP d d l Z d d l Z d d l m Z d Z d Z d Z d Z d S( iÿÿÿÿN( t reraisec
C s: | d
k r t j } n | d t k s` t | d j d d k s` t | d d t rd | St | d _ t
j t
j | } d j
t t | } | rº | rº | d 7} n | rt | j } | d j
g | D] \ } } d | ^ qâ 7} n d | } d | d | | f } | f | d _ | S( sd
Given an exception, this will test if the exception was due to a
signature error, and annotate the error with better information if
so.
Usage::
try:
val = callable(*args, **kw)
except TypeError:
exc_info = fix_type_error(None, callable, args, kw)
raise exc_info[0], exc_info[1], exc_info[2]
i i t argumentsiÿÿÿÿt _type_error_fixeds , s %s=...s (%s)s %s; got %s, wanted %sN( t Nonet syst exc_infot TypeErrort strt findt getattrt Falset TrueR t inspectt
formatargspect
getargspect joint mapt _short_reprt sortedt itemst args(
R t callablet varargst kwargst argspecR t nt vt gotspect msg( ( sF /home/tvault/.virtenv/lib/python2.7/site-packages/paste/deploy/util.pyt fix_type_error s$
3
c C s; t | } t | d k r7 | d d | d } n | S( Ni i s ...iüÿÿÿ( t reprt len( R ( ( sF /home/tvault/.virtenv/lib/python2.7/site-packages/paste/deploy/util.pyR + s c O sJ y | | | } Wn0 t k
rE t d | | | } t | n X| S( sN
Call ``callable(*args, **kw)`` fixing any type errors that come out.
N( R R R R ( R R t kwt valR ( ( sF /home/tvault/.virtenv/lib/python2.7/site-packages/paste/deploy/util.pyt fix_call2 s
c C s} d | k r | j d n | d f \ } } t | } x= | j d d | r[ | g n g D] } t | | } q` W| S( s
Looks up a module or object from a some.module:func_name specification.
To just look up a module, omit the colon and everything after it.
t :t .i N( t splitR t
__import__R ( t spect partst targett modulet part( ( sF /home/tvault/.virtenv/lib/python2.7/site-packages/paste/deploy/util.pyt
lookup_object>