Index: lnt/trunk/lnt/tests/compile.py =================================================================== --- lnt/trunk/lnt/tests/compile.py +++ lnt/trunk/lnt/tests/compile.py @@ -314,7 +314,7 @@ # Remove any existing content, if necessary. try: shutil.rmtree(source_path) - except OSError, e: + except OSError as e: if e.errno != errno.ENOENT: raise