From: W. Trevor King Date: Sat, 23 Oct 2010 13:31:47 +0000 (-0400) Subject: Move `import with_statement` from sawsim_histogram to sawsim. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bfb9b82aa6666bb0c6e1f9134de469aeca22f8d6;p=sawsim.git Move `import with_statement` from sawsim_histogram to sawsim. --- diff --git a/pysawsim/sawsim.py b/pysawsim/sawsim.py index 858db1c..67cfe29 100644 --- a/pysawsim/sawsim.py +++ b/pysawsim/sawsim.py @@ -21,6 +21,8 @@ """`Seminar` for running `sawsim` and parsing the results. """ +from __future__ import with_statement + try: from collections import namedtuple except ImportError: # work around Python < 2.6 diff --git a/pysawsim/sawsim_histogram.py b/pysawsim/sawsim_histogram.py index ef02ffe..8208c79 100644 --- a/pysawsim/sawsim_histogram.py +++ b/pysawsim/sawsim_histogram.py @@ -17,8 +17,6 @@ # write to Trevor King, Drudge's University, Physics Dept., 3141 Chestnut St., # Philadelphia PA 19104, USA. -from __future__ import with_statement - import numpy from . import __version__, log