Error using simple decorator in Python
<pre><code>def simple_decorator(f):
    def tmp(*args, **kwargs):
        res = f(*args, **kwargs)
        return res
    return tmp

@simple_decorator
class FirstClass():
    pass


@simple_decorator
class SecondClass(FirstClass):
    pass
</code></pre>

<p>I have error:</p>

<pre><code>File "1.py", line 16, in &lt;module&gt;
class SecondClass(FirstClass):
TypeError: Error when calling the metaclass bases
function() argument 1 must be code, not str
</code></pre>

<p>Why ?</p>
