Return string argument, or "" if argument is None. Used in converting etree Elements into text. s - string to convert
(s)
| 30 | |
| 31 | |
| 32 | def noneStr(s): |
| 33 | """Return string argument, or "" if argument is None. |
| 34 | |
| 35 | Used in converting etree Elements into text. |
| 36 | s - string to convert""" |
| 37 | if s: |
| 38 | return s |
| 39 | return "" |
| 40 | |
| 41 | |
| 42 | def enquote(s): |
no outgoing calls
no test coverage detected