equal
deleted
inserted
replaced
254 """obsolete: add a new obsolete marker |
254 """obsolete: add a new obsolete marker |
255 |
255 |
256 * ensuring it is hashable |
256 * ensuring it is hashable |
257 * check mandatory metadata |
257 * check mandatory metadata |
258 * encode metadata |
258 * encode metadata |
|
259 |
|
260 If you are a human writing code creating marker you want to use the |
|
261 `createmarkers` function in this module instead. |
259 """ |
262 """ |
260 if metadata is None: |
263 if metadata is None: |
261 metadata = {} |
264 metadata = {} |
262 if 'date' not in metadata: |
265 if 'date' not in metadata: |
263 metadata['date'] = "%d %d" % util.makedate() |
266 metadata['date'] = "%d %d" % util.makedate() |