Refactored spawn_plot to not use the with-statement, so we can install the dev version of eventlet on 2.4.

This commit is contained in:
Ryan Williams
2010-04-17 16:19:00 -07:00
parent f02d532ccc
commit 8114d2fccc
2 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,6 @@
This script will generate a number of "properties" files for the
Hudson plot plugin
'''
from __future__ import with_statement
import os
import eventlet
@@ -17,8 +16,9 @@ if not os.path.exists(DATA_DIR):
os.makedirs(DATA_DIR)
def write_result(filename, best):
with open(os.path.join(DATA_DIR, filename), 'w') as fd:
fd.write('YVALUE=%s' % best)
fd = open(os.path.join(DATA_DIR, filename), 'w')
fd.write('YVALUE=%s' % best)
fd.close()
def cleanup():
eventlet.sleep(0.2)

View File

@@ -20,7 +20,7 @@ setup(
author='Linden Lab',
author_email='eventletdev@lists.secondlife.com',
url='http://eventlet.net',
packages=find_packages(exclude=['tests']),
packages=find_packages(exclude=['tests', 'benchmarks']),
install_requires=requirements,
zip_safe=False,
long_description=open(