Skip to content

Commit 730e6b7

Browse files
committed
removing hasattr checks since removing py2.6
1 parent 94a86f9 commit 730e6b7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/future/tests/base.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,6 @@ def _futurize_test_script(self, filename='mytestscript.py', stages=(1, 2),
342342
'----\n%s\n----' % f.read(),
343343
)
344344
ErrorClass = (FuturizeError if 'futurize' in script else PasteurizeError)
345-
if not hasattr(e, 'output'):
346-
# The attribute CalledProcessError.output doesn't exist on Py2.6
347-
e.output = None
348345
raise ErrorClass(msg, e.returncode, e.cmd, output=e.output)
349346
return output
350347

@@ -368,9 +365,6 @@ def _run_test_script(self, filename='mytestscript.py',
368365
fn,
369366
'----\n%s\n----' % f.read(),
370367
)
371-
if not hasattr(e, 'output'):
372-
# The attribute CalledProcessError.output doesn't exist on Py2.6
373-
e.output = None
374368
raise VerboseCalledProcessError(msg, e.returncode, e.cmd, output=e.output)
375369
return output
376370

0 commit comments

Comments
 (0)