dict syntax may also be code formatted
Brought to you by:
fabioz
pep8 is enabled in PyDev, it complains about spacing in the following situations
a = {5:'x'} # E231 missing whitespace after ':' a = {5: 'x'} # Good a = {5 :'x'} # E203 whitespace before ':', E231 missing whitespace after ':' a = {5 : 'x'} # E203 whitespace before ':'
Usually the PyDev code formatter fixes things like this (at least with operators like +, -, ..) and follows the pep8.
But in this case, I don't see any options in the Code Formatter settings to make the code formatter strip spaces before the ':'.
Sorry about that, this seems to be a dupe of #564