From 0267c1514711908269df50d3dddda78a82b20de7 Mon Sep 17 00:00:00 2001 From: Ben McGinnes Date: Mon, 18 May 2015 21:32:27 +1000 Subject: PEP8 compliance edits * Fixed delkey.py, encrypt-to-all.py, exportimport.py and inter-edit.py for PEP8 compliance. * Removed PyGtkGpgKeys.* and pygpa.* due to massive number of errors in conversion process, PEP8 compliance and reliance on a gtk module that is not present in PyPI, with no indication as to its origin or source. --- lang/py3-pyme/examples/inter-edit.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'lang/py3-pyme/examples/inter-edit.py') diff --git a/lang/py3-pyme/examples/inter-edit.py b/lang/py3-pyme/examples/inter-edit.py index f97232b7..32f8edd9 100644 --- a/lang/py3-pyme/examples/inter-edit.py +++ b/lang/py3-pyme/examples/inter-edit.py @@ -14,9 +14,11 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA -import os, sys +import os +import sys from pyme import core from pyme.core import Data, Context from pyme.constants import status @@ -29,12 +31,13 @@ for name in dir(status): if not name.startswith('__') and name != "util": stat2str[getattr(status, name)] = name + # Print the output received since the last prompt before giving the new prompt def edit_fnc(stat, args, helper): global stat_strings try: while True: - helper["data"].seek(helper["skip"],0) + helper["data"].seek(helper["skip"], 0) data = helper["data"].read() helper["skip"] += len(data) print(data) @@ -53,5 +56,5 @@ else: helper = {"skip": 0, "data": out} c.op_edit(key, edit_fnc, helper, out) print("[-- Final output --]") - out.seek(helper["skip"],0) + out.seek(helper["skip"], 0) print(out.read()) -- cgit v1.2.3