~daniele-athome/pygpgme/pygpgme

« back to all changes in this revision

Viewing changes to gpgme/editutil.py

  • Committer: James Henstridge
  • Date: 2012-03-02 07:31:48 UTC
  • mfrom: (70.1.1 pygpgme)
  • Revision ID: james@jamesh.id.au-20120302073148-4ko7stqhlfumwnp0
Fix up STATE_ERROR handling in editutil, fixing bug #861470.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
            if data is not None:
77
77
                os.write(fd, data.encode('ASCII'))
78
78
        else:
79
 
            self.state = STATE_ERROR
 
79
            self.state = self.STATE_ERROR
80
80
            raise gpgme.error(gpgme.ERR_SOURCE_UNKNOWN, gpgme.ERR_GENERAL)
81
81
 
82
82