소스 검색

cosmetic: s/api/doc/

Antoine Beaupré 9 년 전
부모
커밋
2e9bd5a883
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      setup.py

+ 3 - 3
setup.py

@@ -182,15 +182,15 @@ class build_api(Command):
 
     def run(self):
         print("auto-generating API documentation")
-        with open("docs/api.rst", "w") as api:
-            api.write("""
+        with open("docs/api.rst", "w") as doc:
+            doc.write("""
 Borg Backup API documentation"
 =============================
 """)
             for mod in glob('borg/*.py') + glob('borg/*.pyx'):
                 print("examining module %s" % mod)
                 if "/_" not in mod:
-                    api.write("""
+                    doc.write("""
 .. automodule:: %s
     :members:
     :undoc-members: