Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.db.mnist
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.db.mnist
Commits
de22dbd9
Commit
de22dbd9
authored
11 years ago
by
Laurent EL SHAFEY
Browse files
Options
Downloads
Patches
Plain Diff
[python3] add support
parent
89c3a234
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
setup.py
+1
-0
1 addition, 0 deletions
setup.py
xbob/db/mnist/query.py
+3
-3
3 additions, 3 deletions
xbob/db/mnist/query.py
with
4 additions
and
3 deletions
setup.py
+
1
−
0
View file @
de22dbd9
...
...
@@ -52,6 +52,7 @@ setup(
'
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
'
,
'
Natural Language :: English
'
,
'
Programming Language :: Python
'
,
'
Programming Language :: Python :: 3
'
,
'
Topic :: Scientific/Engineering :: Artificial Intelligence
'
,
'
Topic :: Database :: Front-Ends
'
,
],
...
...
This diff is collapsed.
Click to expand it.
xbob/db/mnist/query.py
+
3
−
3
View file @
de22dbd9
...
...
@@ -52,9 +52,9 @@ class Database():
try
:
if
self
.
m_tmp_dir
:
shutil
.
rmtree
(
self
.
m_tmp_dir
)
# delete directory
except
OSError
,
e
:
except
OSError
as
e
:
if
e
.
errno
!=
2
:
# code 2 - no such file or directory
raise
'
xbob.db.mnist: Error while erasing temporarily downloaded data files
'
raise
(
"
xbob.db.mnist: Error while erasing temporarily downloaded data files
"
)
def
__db_is_installed__
(
self
):
from
pkg_resources
import
resource_filename
...
...
@@ -132,7 +132,7 @@ class Database():
# perform the checks
for
parameter
in
parameters
:
if
parameter
not
in
valid_parameters
:
raise
ValueError
,
"
Invalid %s
'
%s
'
. Valid values are %s, or lists/tuples of those
"
%
(
parameter_description
,
parameter
,
valid_parameters
)
raise
ValueError
(
"
Invalid %s
'
%s
'
. Valid values are %s, or lists/tuples of those
"
%
(
parameter_description
,
parameter
,
valid_parameters
)
)
# check passed, now return the list/tuple of parameters
return
parameters
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment