File tree 2 files changed +9
-11
lines changed
2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -229,17 +229,15 @@ def _add_env_if_not_empty(lst, value):
229
229
230
230
231
231
def generate_toc (root ):
232
- return (
233
- str (
234
- (
235
- try_to_run (["git" , "ls-files" ], cwd = root )
236
- or try_to_run (["git" , "ls-files" ])
237
- or try_to_run (["hg" , "locate" ], cwd = root )
238
- or try_to_run (["hg" , "locate" ])
239
- )
240
- ).strip ()
241
- or ""
232
+ res = (
233
+ try_to_run (["git" , "ls-files" ], cwd = root )
234
+ or try_to_run (["git" , "ls-files" ])
235
+ or try_to_run (["hg" , "locate" ], cwd = root )
236
+ or try_to_run (["hg" , "locate" ])
242
237
)
238
+ if res is None :
239
+ return ""
240
+ return str (res ).strip () or ""
243
241
244
242
245
243
def main (* argv , ** kwargs ):
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
from setuptools import setup
3
3
4
- version = "2.1.0 "
4
+ version = "2.1.1 "
5
5
classifiers = [
6
6
"Development Status :: 5 - Production/Stable" ,
7
7
"Environment :: Plugins" ,
You can’t perform that action at this time.
0 commit comments