• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sirosen / SALVE
100%
stable: 100%

Build:
Build:
LAST BUILD BRANCH: wip/refactor/2-3-0-cleanup
DEFAULT BRANCH: stable
Repo Added 24 Jul 2014 04:56AM UTC
Files 336
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH wip/bugfix/logging-python-vers
branch: wip/bugfix/logging-python-vers
CHANGE BRANCH
x
Reset
  • wip/bugfix/logging-python-vers
  • 2.2.0
  • 2.3.0
  • 2.3.1
  • 2.4.1
  • bugfix/logging-python-vers
  • bugfix/logging/cli-vs-configfile
  • dev
  • documentation/readme-2.2.0
  • feature/abstract-filesys
  • refactor/codeclimate
  • refactor/flake8
  • stable
  • testing/travis-nosudo
  • wip/bugfix/setuptools-fixes
  • wip/documentation/cleanup-metadata
  • wip/documentation/cli-help-2.3.0
  • wip/documentation/readme-fixup
  • wip/documentation/readme-rst
  • wip/feature/abstract-filesys
  • wip/feature/block-primary-attr
  • wip/feature/improved-relative-paths
  • wip/feature/mock-fs-verify
  • wip/feature/pip-package
  • wip/feature/py2-6-compat
  • wip/feature/py35
  • wip/feature/pypy
  • wip/feature/verify-pre-deploy
  • wip/refactor/2-3-0-cleanup
  • wip/refactor/action-prettynames
  • wip/refactor/clean-initfiles
  • wip/refactor/codeclimate
  • wip/refactor/general-cleanup
  • wip/refactor/global-state
  • wip/refactor/remove-base-modules

pending completion
190

push

travis-ci

sirosen
Special casing for Python 2.6 logging

The Python2.6 StreamHandler initializer has a different signature from the one
used in Python2.7 and Python3.x
Namely, rather than using a keyword arg, it uses an optional positional
argument for the Stream, and it defaults when the argument is omitted, not when
it is `None`. Although I'm unsure of the behavior of the logger on 2.6 when the
argument is supplied as None, I'd expect it to break. Per the documentation,
this is the only correct/safe way to set the stream for Python 2.6

In Python 2.6, the NullHandler was not part of the standard logging library. As
a result, we must wrap references to the NullHandler in salve.log.handler and
explicitly define a NullHandler when we get an AttributeError doing so (which
indicates that the logging module doesn't have an attribute named
'NullHanlder').

Fixes a typo of "'DEBUG'" instead of "logging.DEBUG"

9 of 9 new or added lines in 3 files covered. (100.0%)

1386 of 1386 relevant lines covered (100.0%)

6.99 hits per line

Relevant lines Covered
Build:
Build:
1386 RELEVANT LINES 1386 COVERED LINES
6.99 HITS PER LINE
Source Files on wip/bugfix/logging-python-vers
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
190 wip/bugfix/logging-python-vers Special casing for Python 2.6 logging The Python2.6 StreamHandler initializer has a different signature from the one used in Python2.7 and Python3.x Namely, rather than using a keyword arg, it uses an optional positional argument for the Stream, ... push 21 Oct 2015 03:32AM UTC sirosen travis-ci pending completion  
189 wip/bugfix/logging-python-vers Testing behavior of logging on py 2.6 Expect to kill this commit, want to run it on Travis though push 21 Oct 2015 03:28AM UTC sirosen travis-ci pending completion  
186 wip/bugfix/logging-python-vers Testing behavior of logging on py 2.6 Expect to kill this commit, want to run it on Travis though push 21 Oct 2015 03:17AM UTC sirosen travis-ci pending completion  
185 wip/bugfix/logging-python-vers Testing behavior of logging on py 2.6 Expect to kill this commit, want to run it on Travis though push 21 Oct 2015 03:14AM UTC sirosen travis-ci pending completion  
182 wip/bugfix/logging-python-vers Testing behavior of logging on py 2.6 Expect to kill this commit, want to run it on Travis though push 21 Oct 2015 03:11AM UTC sirosen travis-ci pending completion  
181 wip/bugfix/logging-python-vers Testing behavior of logging on py 2.6 Expect to kill this commit, want to run it on Travis though push 21 Oct 2015 03:10AM UTC sirosen travis-ci pending completion  
180 wip/bugfix/logging-python-vers Testing behavior of logging on py 2.6 Expect to kill this commit, want to run it on Travis though push 21 Oct 2015 03:07AM UTC sirosen travis-ci pending completion  
179 wip/bugfix/logging-python-vers Testing behavior of logging on py 2.6 Expect to kill this commit, want to run it on Travis though push 21 Oct 2015 03:03AM UTC sirosen travis-ci pending completion  
178 wip/bugfix/logging-python-vers Testing behavior of logging on py 2.6 Expect to kill this commit, want to run it on Travis though push 21 Oct 2015 02:58AM UTC sirosen travis-ci pending completion  
177 wip/bugfix/logging-python-vers Testing behavior of logging on py 2.6 Expect to kill this commit, want to run it on Travis though push 21 Oct 2015 02:53AM UTC sirosen travis-ci pending completion  
See All Builds (228)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc