Bug 1464327 - [docs] Fix doc uploading by removing trailing comma, r?gps draft
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Mon, 28 May 2018 08:44:08 -0400
changeset 800505 08c3e68878d2c2fe7ca63c184d27ef56b57e08f5
parent 800491 a466172aed4bc2afc21169b749b8068a4b98c93f
push id111389
push userahalberstadt@mozilla.com
push dateMon, 28 May 2018 12:46:41 +0000
reviewersgps
bugs1464327
milestone62.0a1
Bug 1464327 - [docs] Fix doc uploading by removing trailing comma, r?gps This was changing the project from "main" -> ("main",) which was causing the DocUp task to upload to urls like: "('main',)/62.0/_sources/..." MozReview-Commit-ID: 1bL9nqiAEFE
tools/docs/mach_commands.py
--- a/tools/docs/mach_commands.py
+++ b/tools/docs/mach_commands.py
@@ -142,17 +142,17 @@ class Documentation(MachCommandBase):
                                    ('.py', 'r', imp.PY_SOURCE))
 
         # Prefer the Mozilla project name, falling back to Sphinx's
         # default variable if it isn't defined.
         project = getattr(conf, 'moz_project_name', None)
         if not project:
             project = conf.project.replace(' ', '_')
 
-        self._project = project,
+        self._project = project
         self._version = getattr(conf, 'version', None)
 
     @property
     def project(self):
         if not self._project:
             self._read_project_properties()
         return self._project