mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 07:58:04 +00:00
20 lines
497 B
Python
20 lines
497 B
Python
"""Contains both normal error messages and Python3 porting error messages."""
|
|
# pylint: disable=too-few-public-methods
|
|
|
|
# error: import missing `from __future__ import absolute_import`
|
|
import sys
|
|
|
|
# error: Use raise ErrorClass(args) instead of raise ErrorClass, args.
|
|
raise Exception, 1
|
|
|
|
class Test(object):
|
|
"""dummy"""
|
|
|
|
def __init__(self):
|
|
# warning: Calling a dict.iter*() method
|
|
{1: 2}.iteritems()
|
|
return 42
|
|
|
|
# error: print statement used
|
|
print 'not in python3'
|