[Python-modules-commits] [ropemode] 01/05: Import ropemode_0.4.orig.tar.gz
Arnaud Fontaine
arnau at moszumanska.debian.org
Thu Jan 26 04:25:54 UTC 2017
This is an automated email from the git hooks/post-receive script.
arnau pushed a commit to branch master
in repository ropemode.
commit a44b3af103439af1a5774880ac33feef4951b610
Author: Arnaud Fontaine <arnaud.fontaine at nexedi.com>
Date: Thu Jan 26 13:11:16 2017 +0900
Import ropemode_0.4.orig.tar.gz
---
PKG-INFO | 2 +-
ropemode.egg-info/PKG-INFO | 2 +-
ropemode/__init__.py | 2 +-
ropemode/decorators.py | 7 ++++---
4 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/PKG-INFO b/PKG-INFO
index b08c0ce..bb2c79b 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: ropemode
-Version: 0.3
+Version: 0.4
Summary: ropemode, a helper for using rope refactoring library in IDEs
Home-page: http://rope.sf.net/
Author: Ali Gholami Rudi
diff --git a/ropemode.egg-info/PKG-INFO b/ropemode.egg-info/PKG-INFO
index b08c0ce..bb2c79b 100644
--- a/ropemode.egg-info/PKG-INFO
+++ b/ropemode.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: ropemode
-Version: 0.3
+Version: 0.4
Summary: ropemode, a helper for using rope refactoring library in IDEs
Home-page: http://rope.sf.net/
Author: Ali Gholami Rudi
diff --git a/ropemode/__init__.py b/ropemode/__init__.py
index 9927422..8c30ee6 100644
--- a/ropemode/__init__.py
+++ b/ropemode/__init__.py
@@ -1,7 +1,7 @@
"""ropemode, a helper for using rope refactoring library in IDEs"""
INFO = __doc__
-VERSION = '0.3'
+VERSION = '0.4'
COPYRIGHT = """\
Copyright (C) 2007-2012 Ali Gholami Rudi
diff --git a/ropemode/decorators.py b/ropemode/decorators.py
index ec1321c..d6c23ff 100644
--- a/ropemode/decorators.py
+++ b/ropemode/decorators.py
@@ -1,3 +1,4 @@
+from __future__ import print_function
import traceback
from rope.base import exceptions
@@ -16,7 +17,7 @@ class Logger(object):
def _show(self, message):
if message is None:
- print message
+ print(message)
else:
self.message(message)
@@ -27,7 +28,7 @@ def lisphook(func):
def newfunc(*args, **kwds):
try:
func(*args, **kwds)
- except Exception, e:
+ except Exception as e:
trace = str(traceback.format_exc())
short = 'Ignored an exception in ropemode hook: %s' % \
_exception_message(e)
@@ -51,7 +52,7 @@ def _exception_handler(func, raise_exceptions, error_return):
def newfunc(*args, **kwds):
try:
return func(*args, **kwds)
- except exceptions.RopeError, e:
+ except exceptions.RopeError as e:
short = None
if isinstance(e, input_exceptions):
if not raise_exceptions:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/ropemode.git
More information about the Python-modules-commits
mailing list