diff options
author | Ask Solem <ask@celeryproject.org> | 2012-06-15 19:32:40 +0200 |
---|---|---|
committer | Ask Solem <ask@celeryproject.org> | 2012-06-15 19:32:40 +0200 |
commit | 5e7a32440f803321a58453efb3ea0fde0d4497b2 (patch) | |
tree | 3fe4f3e58b85b18105141d799779f30d043ecd82 /kombu/utils/compat.py | |
parent | 8d5652600e9afc76c803958638821a12018b8803 (diff) | |
download | kombu-5e7a32440f803321a58453efb3ea0fde0d4497b2.tar.gz |
Use single quotes
Diffstat (limited to 'kombu/utils/compat.py')
-rw-r--r-- | kombu/utils/compat.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kombu/utils/compat.py b/kombu/utils/compat.py index 251bb67c..c1b3cec4 100644 --- a/kombu/utils/compat.py +++ b/kombu/utils/compat.py @@ -55,7 +55,7 @@ class CompatOrderedDict(dict, MutableMapping): """ if len(args) > 1: - raise TypeError("expected at most 1 arguments, got %d" % ( + raise TypeError('expected at most 1 arguments, got %d' % ( len(args))) try: self.__root @@ -136,7 +136,7 @@ class CompatOrderedDict(dict, MutableMapping): if isinstance(other, dict): for key in other: self[key] = other[key] - elif hasattr(other, "keys"): + elif hasattr(other, 'keys'): for key in other.keys(): self[key] = other[key] else: @@ -187,7 +187,7 @@ class CompatOrderedDict(dict, MutableMapping): if not self: raise KeyError('dictionary is empty') if last: - if sys.platform.startswith("java"): + if sys.platform.startswith('java'): key = self.keys()[-1] else: key = reversed(self).next() @@ -258,7 +258,7 @@ import platform as _platform from stat import ST_DEV, ST_INO -if _platform.system() == "Windows": +if _platform.system() == 'Windows': #since windows doesn't go with WatchedFileHandler use FileHandler instead WatchedFileHandler = logging.FileHandler else: |