diff options
author | Kevin Suo <suokunlong@126.com> | 2020-10-10 14:43:55 +0800 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-10-10 14:11:27 +0200 |
commit | 5fb0e0f68bc9d37d43e0782b903919630852904c (patch) | |
tree | 68e8d8500db4dec3deb7ba20dcf0aaea6f09d580 /osx | |
parent | 3f425069fc31bd6bac86d98312631321d0ff591f (diff) |
Improve example python code in scripting.
* Modified the code to be more pythonic.
* If "len(theString) == 0", then "not theString" evaluates to True.
* "theString[0].isupper()" and "theString[1].isupper()" can be combined.
* Remove unused imported string module
* Wrap long lines
* run autopep8 to prettify
* ...
Change-Id: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbf5b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104136
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'osx')
0 files changed, 0 insertions, 0 deletions