Kevin Roy

Results comments of Kevin Roy

I was also experiencing this issue and I'm now using some piece of code i've found in [this stackoverflow question](http://stackoverflow.com/questions/4293074/in-emacs-python-mode-customize-multi-line-statement-indentation) which i put in my `dotspacemacs/config`.

@tko : I think i misread your OP as i was thinking the stackoverflow answer was related and where it was not the same issue sorry. As a former vim...

I think this issue has been fixed somehow since I can't reproduce it in 3002.2 on Debian Buster. ... _(which I am actually facing on 2019.2.7 but that's another story...

... and i think i forgot to add a bit of context 😅 (thanks @OrangeDog for the `replace` "workaround"): I'm a happy user of formulas and i've experienced this issue...

yeah sure, i know that but this has been somehow fixed or reverted since python3.7 (this does not affect buster at all which is on python3.7) and i thought pillar...

> You can't rely on the iteration order of a dict, and you never could. According to [python3.7 changelog](https://docs.python.org/3/whatsnew/3.7.html), this has been officialized in the language spec of python.

@DmitryKuzmenko like i said earlier, [i already know that](https://github.com/saltstack/salt/issues/58401#issuecomment-689014919) and the example i provided to reproduced is just picked from the salt formula itself (and i think it's not the...

>Here's a small change in your template that helps in your case. I've changed calling of the .items() method with dictsort jinja filter. Indeed, i was not aware of this...

I also stumble upon this exact same missing `__enter__` exception and after debuging a bit with pdb, it seems the fileclient is a [PillarClient](https://github.com/saltstack/salt/blob/0d518807e2c246856d44e247c627d3aa8b04ca8c/salt/fileclient.py#L922) which is missing proper contextmanager's `__enter__`...

I confirm this is working fine :+1: :tada: (I did almost the same by forcing the fileclient in my ext_pillar to workaround this issue :wink:)