Mercurial > hgrepos > Python > libs > ConfigMix
comparison configmix/__init__.py @ 187:d2eb83720ad8
FIX: Docu: names of predefined constants
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 03 May 2019 19:44:04 +0200 |
| parents | fa101fb0cd7a |
| children | 17b938ccecb8 |
comparison
equal
deleted
inserted
replaced
| 186:fa101fb0cd7a | 187:d2eb83720ad8 |
|---|---|
| 214 | 214 |
| 215 | 215 |
| 216 def clear_assoc(): | 216 def clear_assoc(): |
| 217 """Remove all configured loader associations. | 217 """Remove all configured loader associations. |
| 218 | 218 |
| 219 The :data:`_default_loaders` are **not** changed. | 219 The :data:`.DEFAULT_ASSOC` are **not** changed. |
| 220 | 220 |
| 221 """ | 221 """ |
| 222 del _extensions[:] | 222 del _extensions[:] |
| 223 | 223 |
| 224 | 224 |
| 253 | 253 |
| 254 The OS specific case-sensitivity behaviour of | 254 The OS specific case-sensitivity behaviour of |
| 255 :func:`fnmatch.fnmatch` applies (i.e. :func:`os.path.normpath` | 255 :func:`fnmatch.fnmatch` applies (i.e. :func:`os.path.normpath` |
| 256 will be called for both arguments). | 256 will be called for both arguments). |
| 257 | 257 |
| 258 If `loader` is :data:`DEFAULT_ASSOC` then the default association | 258 If `loader` is :data:`.DEFAULT_LOADER` then the default association |
| 259 from :data:`_default_loaders` will be used -- if any. | 259 from :data:`.DEFAULT_ASSOC` will be used -- if any. |
| 260 | 260 |
| 261 """ | 261 """ |
| 262 if mode is DEFAULT_LOADER: | 262 if mode is DEFAULT_LOADER: |
| 263 for p, m in DEFAULT_ASSOC: | 263 for p, m in DEFAULT_ASSOC: |
| 264 if p == fnpattern: | 264 if p == fnpattern: |
