summaryrefslogtreecommitdiff
path: root/kombu/__init__.py
diff options
context:
space:
mode:
authorAsk Solem <ask@celeryproject.org>2012-06-15 19:32:40 +0200
committerAsk Solem <ask@celeryproject.org>2012-06-15 19:32:40 +0200
commit5e7a32440f803321a58453efb3ea0fde0d4497b2 (patch)
tree3fe4f3e58b85b18105141d799779f30d043ecd82 /kombu/__init__.py
parent8d5652600e9afc76c803958638821a12018b8803 (diff)
downloadkombu-5e7a32440f803321a58453efb3ea0fde0d4497b2.tar.gz
Use single quotes
Diffstat (limited to 'kombu/__init__.py')
-rw-r--r--kombu/__init__.py60
1 files changed, 30 insertions, 30 deletions
diff --git a/kombu/__init__.py b/kombu/__init__.py
index 7aefc76f..8d29715c 100644
--- a/kombu/__init__.py
+++ b/kombu/__init__.py
@@ -2,11 +2,11 @@
from __future__ import absolute_import
VERSION = (2, 2, 1)
-__version__ = ".".join(map(str, VERSION[0:3])) + "".join(VERSION[3:])
-__author__ = "Ask Solem"
-__contact__ = "ask@celeryproject.org"
-__homepage__ = "http://kombu.readthedocs.org"
-__docformat__ = "restructuredtext en"
+__version__ = '.'.join(map(str, VERSION[0:3])) + ''.join(VERSION[3:])
+__author__ = 'Ask Solem'
+__contact__ = 'ask@celeryproject.org'
+__homepage__ = 'http://kombu.readthedocs.org'
+__docformat__ = 'restructuredtext en'
# -eof meta-
@@ -16,20 +16,20 @@ import sys
if sys.version_info < (2, 5): # pragma: no cover
if sys.version_info >= (2, 4):
raise Exception(
- "Python 2.4 is not supported by this version. "
- "Please use Kombu versions 1.x.")
+ 'Python 2.4 is not supported by this version. '
+ 'Please use Kombu versions 1.x.')
else:
- raise Exception("Kombu requires Python versions 2.5 or later.")
+ raise Exception('Kombu requires Python versions 2.5 or later.')
# Lazy loading.
# - See werkzeug/__init__.py for the rationale behind this.
from types import ModuleType
all_by_module = {
- "kombu.connection": ["BrokerConnection", "Connection"],
- "kombu.entity": ["Exchange", "Queue"],
- "kombu.messaging": ["Consumer", "Producer"],
- "kombu.pools": ["connections", "producers"],
+ 'kombu.connection': ['BrokerConnection', 'Connection'],
+ 'kombu.entity': ['Exchange', 'Queue'],
+ 'kombu.messaging': ['Consumer', 'Producer'],
+ 'kombu.pools': ['connections', 'producers'],
}
object_origins = {}
@@ -50,36 +50,36 @@ class module(ModuleType):
def __dir__(self):
result = list(new_module.__all__)
- result.extend(("__file__", "__path__", "__doc__", "__all__",
- "__docformat__", "__name__", "__path__", "VERSION",
- "__package__", "__version__", "__author__",
- "__contact__", "__homepage__", "__docformat__"))
+ result.extend(('__file__', '__path__', '__doc__', '__all__',
+ '__docformat__', '__name__', '__path__', 'VERSION',
+ '__package__', '__version__', '__author__',
+ '__contact__', '__homepage__', '__docformat__'))
return result
# 2.5 does not define __package__
try:
package = __package__
except NameError:
- package = "kombu"
+ package = 'kombu'
# keep a reference to this module so that it's not garbage collected
old_module = sys.modules[__name__]
new_module = sys.modules[__name__] = module(__name__)
new_module.__dict__.update({
- "__file__": __file__,
- "__path__": __path__,
- "__doc__": __doc__,
- "__all__": tuple(object_origins),
- "__version__": __version__,
- "__author__": __author__,
- "__contact__": __contact__,
- "__homepage__": __homepage__,
- "__docformat__": __docformat__,
- "__package__": package,
- "VERSION": VERSION})
+ '__file__': __file__,
+ '__path__': __path__,
+ '__doc__': __doc__,
+ '__all__': tuple(object_origins),
+ '__version__': __version__,
+ '__author__': __author__,
+ '__contact__': __contact__,
+ '__homepage__': __homepage__,
+ '__docformat__': __docformat__,
+ '__package__': package,
+ 'VERSION': VERSION})
-if os.environ.get("KOMBU_LOG_DEBUG"):
- os.environ.update(KOMBU_LOG_CHANNEL="1", KOMBU_LOG_CONNECTION="1")
+if os.environ.get('KOMBU_LOG_DEBUG'):
+ os.environ.update(KOMBU_LOG_CHANNEL='1', KOMBU_LOG_CONNECTION='1')
from .utils import debug
debug.setup_logging()