]> git.notmuchmail.org Git - notmuch/commit
doc/prerst2man.py: Fix 'os.system' -> 'system' typo
authorW. Trevor King <wking@tremily.us>
Sat, 5 Apr 2014 17:31:08 +0000 (10:31 -0700)
committerDavid Bremner <david@tethera.net>
Mon, 21 Apr 2014 12:32:03 +0000 (21:32 +0900)
commitc3d54c4b54959633f2aee5e57ae21db71af15dbd
tree0169b1e5f317090ffd54d0505c06714d502215d6
parent334f247d9f5dc96db0d57bfa64cab1cf8b333ce4
doc/prerst2man.py: Fix 'os.system' -> 'system' typo

Avoid:

  $ make HAVE_SPHINX=0 HAVE_RST2MAN=1 build-man
  python ./doc/prerst2man.py ./doc doc/_build/man
  Traceback (most recent call last):
    File "./doc/prerst2man.py", line 65, in <module>
      os.system('set -x; rst2man {0} {1}/{2}.{3}'
  NameError: name 'os' is not defined
  make: *** [doc/_build/man/man1/notmuch.1] Error 1

by using system directly.  We don't need the 'os.' namespacing,
because the function was imported with:

  from os import makedirs, system
doc/prerst2man.py