#NEWLINE# def gcd( a , b ) : #NEWLINE# #INDENT# 'Calculate the Greatest Common Divisor of a and b.\n\n        Unless b==0, the result will have the same sign as b (so that when\n        b is divided by it, the result comes out positive).\n\n        (Copied from the Python2.6 source Copyright (c) 2001-2011 Python Software Foundation; All Rights Reserved)\n        ' #NEWLINE# while b : #NEWLINE# #INDENT# ( a , b ) = ( a , ( a % b ) ) #NEWLINE# #UNINDENT# return a