(d, aware_datetime)
| 152 | |
| 153 | |
| 154 | def _date_to_string(d, aware_datetime): |
| 155 | if aware_datetime: |
| 156 | d = d.astimezone(datetime.UTC) |
| 157 | return '%04d-%02d-%02dT%02d:%02d:%02dZ' % ( |
| 158 | d.year, d.month, d.day, |
| 159 | d.hour, d.minute, d.second |
| 160 | ) |
| 161 | |
| 162 | def _escape(text): |
| 163 | m = _controlCharPat.search(text) |
no test coverage detected
searching dependent graphs…