~ubuntu-branches/ubuntu/trusty/txzookeeper/trusty

« back to all changes in this revision

Viewing changes to txzookeeper/tests/__init__.py

  • Committer: Package Import Robot
  • Author(s): Clint Byrum, Jakub Wilk, Clint Byrum
  • Date: 2013-05-15 09:58:18 UTC
  • mfrom: (3.2.1) (4.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130515095818-oragqc8jfsc3205x
Tags: 0.9.8-1
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Clint Byrum ]
* New upstream release.
* Updated standards to 3.9.4, no changes necessary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
            else:
70
70
                setattr(object, attr, original_value)
71
71
        setattr(object, attr, value)
72
 
 
73
72
        if original_value is self._missing_attr:
74
73
            return None
75
74
        return original_value
76
75
 
77
 
    def capture_log(
78
 
        self, name="", level=logging.INFO, log_file=None, formatter=None):
 
76
    def capture_log(self, name="", level=logging.INFO,
 
77
                    log_file=None, formatter=None):
79
78
        """Capture log channel to StringIO"""
80
79
        if log_file is None:
81
80
            log_file = StringIO.StringIO()