Ticket #12206: 12206.diff
File 12206.diff, 679 bytes (added by , 15 years ago) |
---|
-
django/core/management/__init__.py
23 23 """ 24 24 command_dir = os.path.join(management_dir, 'commands') 25 25 try: 26 return [f[:-3] for f in os.listdir(command_dir) 27 if not f.startswith('_') and f.endswith('.py')] 26 return [f.rsplit('.', 1)[0] for f in os.listdir(command_dir) 27 if not f.startswith('_') 28 and (f.endswith('.py') or f.endswith('.pyc') or f.endswith('.pyo'))] 28 29 except OSError: 29 30 return [] 30 31