Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Logging was commented out.

  • Loading branch information...
commit 8502504f3f2114f66353c173f261f7469b1f361c 1 parent d538178
Alexander Artemenko authored April 04, 2011

Showing 1 changed file with 11 additions and 11 deletions. Show diff stats Hide diff stats

  1. 22  namalizer.py
22  namalizer.py
... ...
@@ -1,5 +1,5 @@
1 1
 import re
2  
-import logbook
  2
+#import logbook
3 3
 from inspect import isroutine, getmro
4 4
 from itertools import chain
5 5
 
@@ -46,21 +46,21 @@ def objects():
46 46
 
47 47
                                 if norm_value is None or not _defined_in(obj, norm_name, norm_value):
48 48
                                     # no method with normalized name
49  
-                                    logbook.Logger('pep8').info(
50  
-                                        'writing from %s(%s) to %s(%s) for %r' % (name, hash(value), norm_name, hash(norm_value), obj)
51  
-                                    )
  49
+                                    #logbook.Logger('pep8').info(
  50
+                                    #    'writing from %s(%s) to %s(%s) for %r' % (name, hash(value), norm_name, hash(norm_value), obj)
  51
+                                    #)
52 52
                                     setattr(obj, norm_name, value)
53 53
                                 else:
54 54
                                     # set new value back because, probably it is
55 55
                                     # overridden method
56 56
                                     if norm_value != value:
57  
-                                        logbook.Logger('pep8').info(
58  
-                                            'writing back from %s(%s) to %s(%s) for %r' % (
59  
-                                                norm_name, hash(norm_value),
60  
-                                                name, hash(value),
61  
-                                                obj
62  
-                                            )
63  
-                                        )
  57
+                                        #logbook.Logger('pep8').info(
  58
+                                        #    'writing back from %s(%s) to %s(%s) for %r' % (
  59
+                                        #        norm_name, hash(norm_value),
  60
+                                        #        name, hash(value),
  61
+                                        #        obj
  62
+                                        #    )
  63
+                                        #)
64 64
                                         setattr(obj, name, norm_value)
65 65
                             except TypeError:
66 66
                                 pass

0 notes on commit 8502504

Please sign in to comment.
Something went wrong with that request. Please try again.