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
38946e4c
Commit
38946e4c
authored
Oct 20, 2004
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SF patch #1038388: __main__ for whichdb.py
(Contributed by Oleg Broytmann.)
parent
81ffa770
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
Lib/whichdb.py
Lib/whichdb.py
+5
-0
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/whichdb.py
View file @
38946e4c
# !/usr/bin/env python
"""Guess which db package to use to open a db file."""
import
os
...
...
@@ -110,3 +111,7 @@ def whichdb(filename):
# Unknown
return
""
if
__name__
==
"__main__"
:
for
filename
in
sys
.
argv
[
1
:]:
print
whichdb
(
filename
)
or
"UNKNOWN"
,
filename
Misc/NEWS
View file @
38946e4c
...
...
@@ -22,6 +22,8 @@ Extension Modules
Library
-------
- The whichdb module can now be run from the command line.
- Bug #1045381: time.strptime() can now infer the date using %U or %W (week of
the year) when the day of the week and year are also specified.
...
...
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