Browse Source

cosmetic: s/api/doc/

Antoine Beaupré 9 năm trước cách đây
mục cha
commit
2e9bd5a883
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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: