The syntax you are looking for is:
Code:
patch -p1 < my.patch
The "-p1" strips the first level of directories from the pathnames in the diff (in this case, the "a/" and "b/" prefixes). The patch in question is the file "my.patch". The whole command should be given in the directory containing the file "transation.py".