Module xyaptu
[hide private]
[frames] | no frames]

Module xyaptu

source code

This code is taken from the ASPN Python cookbook. I have combined YAPTU and XYAPTU into a single file. The copyright, warranty and license remain with the original authors. Please consult these two URLs

The following changes were made:

Classes [hide private]
  _nevermatch
Polymorphic with a regex that never matches
  copier
Smart-copier (YAPTU) class
  xcopier
xcopier class, inherits from yaptu.copier
Functions [hide private]
 
identity(string, why)
A do-nothing-special-to-the-input, just-return-it function
source code
 
nohandle(*args)
A do-nothing handler that just re-raises the exception
source code
Variables [hide private]
  _never = _nevermatch()