Permalink
Browse files

Minor style fixes (variable naming)

  • Loading branch information...
earl committed Sep 4, 2012
1 parent fd1816b commit 4b8a32d87dfe34d9c468374506b00da1a1f875a2
Showing with 7 additions and 7 deletions.
  1. +5 −5 beanstalkc.py
  2. +2 −2 setup.py
View
@@ -36,11 +36,11 @@ class DeadlineSoon(BeanstalkcException): pass
class SocketError(BeanstalkcException):
@staticmethod
- def wrap(fn, *args, **kwargs):
+ def wrap(wrapped_function, *args, **kwargs):
try:
- return fn(*args, **kwargs)
- except socket.error, e:
- raise SocketError(e)
+ return wrapped_function(*args, **kwargs)
+ except socket.error, err:
+ raise SocketError(err)
class Connection(object):
@@ -114,7 +114,7 @@ def _interact_yaml(self, command, expected_ok, expected_err=[]):
def _interact_peek(self, command):
try:
return self._interact_job(command, ['FOUND'], ['NOT_FOUND'], False)
- except CommandFailed, (_, status, results):
+ except CommandFailed, (_, _status, _results):
return None
# -- public interface --
View
@@ -4,11 +4,11 @@
from beanstalkc import __version__ as src_version
-pkg_version = os.environ.get('BEANSTALKC_PKG_VERSION', src_version)
+PKG_VERSION = os.environ.get('BEANSTALKC_PKG_VERSION', src_version)
setup(
name='beanstalkc',
- version=pkg_version,
+ version=PKG_VERSION,
py_modules=['beanstalkc'],
author='Andreas Bolka',

0 comments on commit 4b8a32d

Please sign in to comment.