From 8a25a77b09c45e7d2ac0841b97bcb37177b7d79b Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 5 Feb 2011 17:56:27 +0100 Subject: [PATCH] fix unused imports and Py2.4-isms in test code --- Cython/Debugger/Tests/TestLibCython.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Cython/Debugger/Tests/TestLibCython.py b/Cython/Debugger/Tests/TestLibCython.py index 8bf7f7a1..29eb33ec 100644 --- a/Cython/Debugger/Tests/TestLibCython.py +++ b/Cython/Debugger/Tests/TestLibCython.py @@ -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() -- 2.26.2