remove 2 accidentally introduced tabs breaking python 3 compat. closes #117580

authorSylvain Thénault <sylvain.thenault@logilab.fr>
changesete22e9a85b9a4
branchstable
phasepublic
hiddenno
parent revision#8baa48c73dde [registry] docstring fixes
child revision#f5f47cc61213 fix umessages test w/ python 3 and LC_ALL=C (closes #119967)
files modified by this revision
ChangeLog
registry.py
# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1360862094 -3600
# Thu Feb 14 18:14:54 2013 +0100
# Branch stable
# Node ID e22e9a85b9a4f89a341e20571cea380cb09797cd
# Parent 8baa48c73ddecf9510bfd6824f81b2483a5b1fea
remove 2 accidentally introduced tabs breaking python 3 compat. closes #117580

diff --git a/ChangeLog b/ChangeLog
@@ -2,10 +2,14 @@
1  ============================
2 
3  --
4      * testlib: check for generators in with_tempdir (closes #117533)
5 
6 +    * registry:
7 +      * remove 2 accidentally introduced tabs breaking python 3 compat (closes #117580)
8 +
9 +
10  2013-01-21  -- 0.59.0
11 
12      * registry:
13 
14        - introduce RegistrableObject base class, mandatory to make
diff --git a/registry.py b/registry.py
@@ -803,11 +803,11 @@
15                  if not (getattr(obj, '__registries__', None)
16                          and getattr(obj, '__regid__', None)
17                          and getattr(obj, '__select__', None)):
18                      return False
19              elif issubclass(obj, RegistrableInstance):
20 - 		return False
21 +                return False
22          elif not isinstance(obj, RegistrableInstance):
23              return False
24          if not obj.__regid__:
25              return False # no regid
26          registries = obj.__registries__