Skip to content

Commit

Permalink
Rename binary/abstract booleans from 1 to true
Browse files Browse the repository at this point in the history
For niftools#76

For reduced ambiguity.  Adapting for this in Python is as easy as

```py
# XML Booleans
XML_TRUE = ["true", "1"]
XML_FALSE = ["false", "0"]

# Example
self.is_abstract = get('abstract') in XML_TRUE
```

Note "True" and "False" are not valid booleans in XML.  Only lowercase.
  • Loading branch information
hexabits committed Jun 17, 2018
1 parent 34ae18e commit 7fb1233
Showing 1 changed file with 83 additions and 83 deletions.
Loading

0 comments on commit 7fb1233

Please sign in to comment.