Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
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
FSL
fslpy
Commits
b2b365ce
Commit
b2b365ce
authored
10 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
When a string property was set to None, it was converting itself to a string 'None'.
parent
09817fe6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fsl/props/properties.py
+0
-1
0 additions, 1 deletion
fsl/props/properties.py
fsl/props/properties_types.py
+3
-1
3 additions, 1 deletion
fsl/props/properties_types.py
with
3 additions
and
2 deletions
fsl/props/properties.py
+
0
−
1
View file @
b2b365ce
...
@@ -116,7 +116,6 @@
...
@@ -116,7 +116,6 @@
import
logging
import
logging
from
collections
import
OrderedDict
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
...
...
This diff is collapsed.
Click to expand it.
fsl/props/properties_types.py
+
3
−
1
View file @
b2b365ce
...
@@ -139,8 +139,10 @@ class String(props.PropertyBase):
...
@@ -139,8 +139,10 @@ class String(props.PropertyBase):
def
cast
(
self
,
value
):
def
cast
(
self
,
value
):
if
value
is
None
:
value
=
''
else
:
value
=
str
(
value
)
value
=
str
(
value
)
if
value
==
''
:
value
=
None
if
value
==
''
:
value
=
None
return
value
return
value
...
...
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