summaryrefslogtreecommitdiff
path: root/_pytest/_code/code.py
diff options
context:
space:
mode:
authorAndras Tim <andras.tim@gmail.com>2017-07-17 01:25:09 +0200
committerAndras Tim <andras.tim@gmail.com>2017-07-17 01:44:23 +0200
commit17a21d540bb7d5e8fc2da115b29e6f5c0c966b43 (patch)
tree578320ce236c8e508e21f23e5977f565cd81654d /_pytest/_code/code.py
parent9bad9b53d8a7399cb2f72f9e5cf399488a065a3d (diff)
downloadpytest-17a21d540bb7d5e8fc2da115b29e6f5c0c966b43.tar.gz
Fixed E301 flake8 errors
expected 1 blank line, found 0
Diffstat (limited to '_pytest/_code/code.py')
-rw-r--r--_pytest/_code/code.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/_pytest/_code/code.py b/_pytest/_code/code.py
index 92d7d5b0c..e921ceb3b 100644
--- a/_pytest/_code/code.py
+++ b/_pytest/_code/code.py
@@ -18,6 +18,7 @@ else:
class Code(object):
""" wrapper around Python code objects """
+
def __init__(self, rawcode):
if not hasattr(rawcode, "co_filename"):
rawcode = getrawcode(rawcode)
@@ -260,6 +261,7 @@ class Traceback(list):
access to Traceback entries.
"""
Entry = TracebackEntry
+
def __init__(self, tb, excinfo=None):
""" initialize from given python traceback object and ExceptionInfo """
self._excinfo = excinfo