mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #15609 -- Fixed some 'raise' statements to use the newer style syntax. Thanks, DaNmarner
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -380,9 +380,9 @@ class _OutputRedirectingPdb(pdb.Pdb):
|
||||
# [XX] Normalize with respect to os.path.pardir?
|
||||
def _module_relative_path(module, path):
|
||||
if not inspect.ismodule(module):
|
||||
raise TypeError, 'Expected a module: %r' % module
|
||||
raise TypeError('Expected a module: %r' % module)
|
||||
if path.startswith('/'):
|
||||
raise ValueError, 'Module-relative files may not have absolute paths'
|
||||
raise ValueError('Module-relative files may not have absolute paths')
|
||||
|
||||
# Find the base directory for the path.
|
||||
if hasattr(module, '__file__'):
|
||||
|
||||
Reference in New Issue
Block a user