Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e2618f34
Commit
e2618f34
authored
Nov 07, 2011
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Plain Diff
Closes #13361: Merge fix from 3.2.
parents
39b53c50
3bd56387
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Lib/logging/__init__.py
Lib/logging/__init__.py
+1
-1
Lib/test/test_logging.py
Lib/test/test_logging.py
+1
-1
No files found.
Lib/logging/__init__.py
View file @
e2618f34
...
...
@@ -1097,7 +1097,7 @@ class Manager(object):
"""
rv
=
None
if
not
isinstance
(
name
,
str
):
raise
Valu
eError
(
'A logger name must be a string'
)
raise
Typ
eError
(
'A logger name must be a string'
)
_acquireLock
()
try
:
if
name
in
self
.
loggerDict
:
...
...
Lib/test/test_logging.py
View file @
e2618f34
...
...
@@ -311,7 +311,7 @@ class BuiltinLevelsTest(BaseTest):
])
def test_invalid_name(self):
self.assertRaises(
Valu
eError, logging.getLogger, any)
self.assertRaises(
Typ
eError, logging.getLogger, any)
class BasicFilterTest(BaseTest):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment