Commit 8a25a77b authored by Stefan Behnel's avatar Stefan Behnel

fix unused imports and Py2.4-isms in test code

parent ac7a5367
......@@ -2,15 +2,14 @@
import os
import re
import sys
import uuid
import shutil
import warnings
import textwrap
import unittest
import tempfile
import subprocess
import distutils.core
from distutils import sysconfig
#import distutils.core
#from distutils import sysconfig
from distutils import ccompiler
import runtests
......@@ -24,7 +23,7 @@ cfuncs_file = os.path.join(root, 'cfuncs.c')
f = open(codefile)
try:
source_to_lineno = dict((line.strip(), i + 1) for i, line in enumerate(f))
source_to_lineno = dict([ (line.strip(), i + 1) for i, line in enumerate(f) ])
finally:
f.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment