Remove unnecessary check for logging.NullHandler for Python 2.6 · EliahKagan/GitPython@2fced2e (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 2fced2e
authored and
committed
Remove unnecessary check for logging.NullHandler for Python 2.6
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -933,8 +933,3 @@ def iter_items(cls, repo, *args, **kwargs): | ||
933 | 933 | class NullHandler(logging.Handler): |
934 | 934 | def emit(self, record): |
935 | 935 | pass |
936 | - | |
937 | - | |
938 | -# In Python 2.6, there is no NullHandler yet. Let's monkey-patch it for a workaround. | |
939 | -if not hasattr(logging, 'NullHandler'): | |
940 | -logging.NullHandler = NullHandler |