<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def hacking_no_old_style_class(logical_line, noqa):
 r"""Check for old style classes. Examples: Okay: class Foo(object):
\n pass Okay: class Foo(Bar, Baz):
\n pass Okay: class Foo(object, Baz):
\n pass Okay: class Foo(somefunc()):
\n pass H238: class Bar:\n pass H238: class Bar():
\n pass """

    if noqa:
        return
    line = core.import_normalize(logical_line.strip())
    if line.startswith("class ") and not RE_NEW_STYLE_CLASS.match(line):
            yield (0, "H238: old style class declaration, "
                   "use new style (inherit from `object`)")