comparison configmix/variables.py @ 522:6b3da9e5acc6

Docs
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 19 Dec 2021 18:53:32 +0100
parents d2751a80d9b7
children f454889e41fa
comparison
equal deleted inserted replaced
521:1001701be682 522:6b3da9e5acc6
247 @filter(text_to_native_os_str(NONE_FILTER, encoding="ascii")) 247 @filter(text_to_native_os_str(NONE_FILTER, encoding="ascii"))
248 def None_filter_impl(config, v): 248 def None_filter_impl(config, v):
249 """Identity. 249 """Identity.
250 250
251 The `None` filter is just a marker to not throw :exc:`KeyError` 251 The `None` filter is just a marker to not throw :exc:`KeyError`
252 but return `None`. 252 but return `None`. It is a no-op within the filter-chain itself.
253 253
254 """ 254 """
255 return v 255 return v
256 256
257 257
258 @filter(text_to_native_os_str(EMPTY_FILTER, encoding="ascii")) 258 @filter(text_to_native_os_str(EMPTY_FILTER, encoding="ascii"))
259 def Empty_filter_impl(config, v): 259 def Empty_filter_impl(config, v):
260 """Identity. 260 """Identity.
261 261
262 The `Empty` filter is just a marker to not throw :exc:`KeyError` 262 The `Empty` filter is just a marker to not throw :exc:`KeyError`
263 but return the empty string. 263 but return the empty string. It is a no-op within the filter-chain itself.
264 264
265 """ 265 """
266 return v 266 return v
267 267
268 268