projects
/
OpenColorIO-Configs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add various TODOs.
[OpenColorIO-Configs.git]
/
aces_1.0.0
/
python
/
aces_ocio
/
process.py
diff --git
a/aces_1.0.0/python/aces_ocio/process.py
b/aces_1.0.0/python/aces_ocio/process.py
index
8312ccd
..
76dd754
100755
(executable)
--- a/
aces_1.0.0/python/aces_ocio/process.py
+++ b/
aces_1.0.0/python/aces_ocio/process.py
@@
-41,9
+41,13
@@
def read_text(text_file):
Return value description.
\r
"""
\r
\r
Return value description.
\r
"""
\r
\r
- if text_file != '':
\r
- with open(text_file, 'rb') as fp:
\r
- text = (fp.read())
\r
+ # TODO: Investigate if check is needed.
\r
+ if not text_file:
\r
+ return
\r
+
\r
+ with open(text_file, 'rb') as fp:
\r
+ text = (fp.read())
\r
+
\r
return text
\r
\r
\r
return text
\r
\r
\r
@@
-62,9
+66,13
@@
def write_text(text, text_file):
Return value description.
\r
"""
\r
\r
Return value description.
\r
"""
\r
\r
- if text_file != '':
\r
- with open(text_file, 'wb') as fp:
\r
- fp.write(text)
\r
+ # TODO: Investigate if check is needed.
\r
+ if not text_file:
\r
+ return
\r
+
\r
+ with open(text_file, 'wb') as fp:
\r
+ fp.write(text)
\r
+
\r
return text
\r
\r
\r
return text
\r
\r
\r