3
€dý  ã               @   s†   d Z dZG dd„ deƒZdd„ Zy:ddlmZmZmZm	Z	 de
ƒ krXeed	ƒ rXed
ƒ‚W n& ek
r€   eƒ Ze Z ZZ	Y nX dS )aB  

Stub file for a guaranteed safe import of duecredit constructs:  if duecredit
is not available.

To use it, place it into your project codebase to be imported, e.g. copy as

    cp stub.py /path/tomodule/module/due.py

Note that it might be better to avoid naming it duecredit.py to avoid shadowing
installed duecredit.

Then use in your code as

    from .due import due, Doi, BibTeX

See  https://github.com/duecredit/duecredit/blob/master/README.md for examples.

Origin:     Originally a part of the duecredit
Copyright:  2015-2016  DueCredit developers
License:    BSD-2
z0.0.5c               @   s4   e Zd ZdZdd„ Zdd„ Ze Z ZZdd„ Z	dS )	ÚInactiveDueCreditCollectorz8Just a stub at the Collector which would not do anythingc             O   s   dS )zPerform no good and no badN© )ÚselfÚargsÚkwargsr   r   ú5/tmp/pip-build-7vycvbft/nipype/nipype/external/due.pyÚ
_donothing!   s    z%InactiveDueCreditCollector._donothingc             O   s   dd„ }|S )zIf I could cite I wouldc             S   s   | S )Nr   )Úfuncr   r   r   Únondecorating_decorator(   s    zAInactiveDueCreditCollector.dcite.<locals>.nondecorating_decoratorr   )r   r   r   r	   r   r   r   Údcite%   s    z InactiveDueCreditCollector.dcitec             C   s   dj | jjƒS )Nz{}())ÚformatÚ	__class__Ú__name__)r   r   r   r   Ú__repr__/   s    z#InactiveDueCreditCollector.__repr__N)
r   Ú
__module__Ú__qualname__Ú__doc__r   r
   ÚciteÚloadÚaddr   r   r   r   r   r      s
   r   c              O   s   dS )zPerform no good and no badNr   )r   r   r   r   r   Ú_donothing_func3   s    r   é    )ÚdueÚBibTeXÚDoiÚUrlr   r   z3Imported due lacks .cite. DueCredit is now disabledN)r   Ú__version__Úobjectr   r   Z	duecreditr   r   r   r   ÚlocalsÚhasattrÚRuntimeErrorÚImportErrorr   r   r   r   Ú<module>   s   