Revert "compat fix for #512 'int' object has no attribute 'lineno'"

This reverts commit 48b152467b0269990289bb6bc5f457858fe64ae3.