From c5dee7b549134361fddf48d1942620292e636733 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 25 Jul 2011 21:42:57 -0500 Subject: [PATCH] _make_rewritten_pyc doesn't need to return anything --- _pytest/assertion/rewrite.py | 1 - 1 file changed, 1 deletion(-) diff --git a/_pytest/assertion/rewrite.py b/_pytest/assertion/rewrite.py index 9699cc121..7e600d2c9 100644 --- a/_pytest/assertion/rewrite.py +++ b/_pytest/assertion/rewrite.py @@ -205,7 +205,6 @@ def _make_rewritten_pyc(state, fn, pyc, co): proc_pyc = pyc + "." + str(os.getpid()) if _write_pyc(co, fn, proc_pyc): os.rename(proc_pyc, pyc) - return co def _read_pyc(source, pyc): """Possibly read a py.test pyc containing rewritten code.