Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor 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
mpim-sw
cdo
Commits
c19d68d9
Commit
c19d68d9
authored
12 years ago
by
Ralf Mueller
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix for argument default value in hasCdo()
parent
83af6b2d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/python/cdo.py
+4
-1
4 additions, 1 deletion
contrib/python/cdo.py
with
4 additions
and
1 deletion
contrib/python/cdo.py
+
4
−
1
View file @
c19d68d9
...
@@ -160,7 +160,10 @@ class Cdo(object):
...
@@ -160,7 +160,10 @@ class Cdo(object):
def
unsetReturnArray
(
self
):
def
unsetReturnArray
(
self
):
self
.
setReturnArray
(
False
)
self
.
setReturnArray
(
False
)
def
hasCdo
(
self
,
path
=
self
.
CDO
):
def
hasCdo
(
self
,
path
=
None
):
if
path
is
None
:
path
=
self
.
CDO
if
os
.
path
.
isfile
(
path
)
and
os
.
access
(
path
,
os
.
X_OK
):
if
os
.
path
.
isfile
(
path
)
and
os
.
access
(
path
,
os
.
X_OK
):
return
True
return
True
return
False
return
False
...
...
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