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
d84da1b6
Commit
d84da1b6
authored
Mar 28, 2007
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More fixes related to removal of exception slicing.
parent
782ff275
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Lib/bsddb/dbtables.py
Lib/bsddb/dbtables.py
+9
-9
No files found.
Lib/bsddb/dbtables.py
View file @
d84da1b6
...
...
@@ -263,7 +263,7 @@ class bsdTableDB :
except
DBError
as
dberror
:
if
txn
:
txn
.
abort
()
raise
TableDBError
,
dberror
[
1
]
raise
TableDBError
,
dberror
.
args
[
1
]
def
ListTableColumns
(
self
,
table
):
...
...
@@ -341,7 +341,7 @@ class bsdTableDB :
except
DBError
as
dberror
:
if
txn
:
txn
.
abort
()
raise
TableDBError
,
dberror
[
1
]
raise
TableDBError
,
dberror
.
args
[
1
]
def
__load_column_info
(
self
,
table
)
:
...
...
@@ -416,7 +416,7 @@ class bsdTableDB :
if
txn
:
txn
.
abort
()
self
.
db
.
delete
(
_rowid_key
(
table
,
rowid
))
raise
TableDBError
,
dberror
[
1
],
info
[
2
]
raise
TableDBError
,
dberror
.
args
[
1
],
info
[
2
]
def
Modify
(
self
,
table
,
conditions
=
{},
mappings
=
{}):
...
...
@@ -467,7 +467,7 @@ class bsdTableDB :
raise
except
DBError
as
dberror
:
raise
TableDBError
,
dberror
[
1
]
raise
TableDBError
,
dberror
.
args
[
1
]
def
Delete
(
self
,
table
,
conditions
=
{}):
"""Delete(table, conditions) - Delete items matching the given
...
...
@@ -507,7 +507,7 @@ class bsdTableDB :
txn
.
abort
()
raise
except
DBError
as
dberror
:
raise
TableDBError
,
dberror
[
1
]
raise
TableDBError
,
dberror
.
args
[
1
]
def
Select
(
self
,
table
,
columns
,
conditions
=
{}):
...
...
@@ -527,7 +527,7 @@ class bsdTableDB :
columns
=
self
.
__tablecolumns
[
table
]
matching_rowids
=
self
.
__Select
(
table
,
columns
,
conditions
)
except
DBError
as
dberror
:
raise
TableDBError
,
dberror
[
1
]
raise
TableDBError
,
dberror
.
args
[
1
]
# return the matches as a list of dictionaries
return
matching_rowids
.
values
()
...
...
@@ -617,7 +617,7 @@ class bsdTableDB :
key
,
data
=
cur
.
next
()
except
DBError
as
dberror
:
if
dberror
[
0
]
!=
DB_NOTFOUND
:
if
dberror
.
args
[
0
]
!=
DB_NOTFOUND
:
raise
continue
...
...
@@ -637,7 +637,7 @@ class bsdTableDB :
rowdata
[
column
]
=
self
.
db
.
get
(
_data_key
(
table
,
column
,
rowid
))
except
DBError
as
dberror
:
if
dberror
[
0
]
!=
DB_NOTFOUND
:
if
dberror
.
args
[
0
]
!=
DB_NOTFOUND
:
raise
rowdata
[
column
]
=
None
...
...
@@ -703,4 +703,4 @@ class bsdTableDB :
except
DBError
as
dberror
:
if
txn
:
txn
.
abort
()
raise
TableDBError
,
dberror
[
1
]
raise
TableDBError
,
dberror
.
args
[
1
]
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