~ubuntu-branches/ubuntu/intrepid/python-gnuplot/intrepid

« back to all changes in this revision

Viewing changes to gp_cygwin.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-06-24 18:40:22 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080624184022-lnok0v9ja8uzdj82
Tags: 1.8-1
* New upstream version.
  - doc file with broken link not shipped anymore. Closes: #336422.
  - Use `with_' instead of `with', which is a keyword in python2.6.
    Closes: #424965.
* Use python-numpy instead of python-numeric. Closes: #469313, #478468.
* Update watch file. Closes: #450271.
* Register documention in section `Programming/Python'.
* Update datafile.py.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: gp_cygwin.py,v 2.2 2003/04/21 09:44:09 mhagger Exp $
 
1
# $Id: gp_cygwin.py 292 2006-03-03 09:49:04Z mhagger $
2
2
 
3
3
# Copyright (C) 1999-2003 Michael Haggerty <mhagger@alum.mit.edu>
4
4
#
12
12
 
13
13
"""
14
14
 
15
 
__cvs_version__ = '$Revision: 2.2 $'
16
 
 
17
 
 
18
15
import Errors
19
16
 
20
17
# ############ Configuration variables: ################################
122
119
        self.write = self.gnuplot.write
123
120
        self.flush = self.gnuplot.flush
124
121
 
 
122
    def close(self):
 
123
        if self.gnuplot is not None:
 
124
            self.gnuplot.close()
 
125
            self.gnuplot = None
 
126
 
 
127
    def __del__(self):
 
128
        self.close()
 
129
 
125
130
    def __call__(self, s):
126
131
        """Send a command string to gnuplot, followed by newline."""
127
132