diff --git a/phabricator/conduit.py b/phabricator/conduit.py
--- a/phabricator/conduit.py
+++ b/phabricator/conduit.py
@@ -80,7 +80,7 @@
             'actAsUser': self._actas,
             'caller': 'hg',
         }
-        if  self._oauth is not None:
+        if self._oauth is not None:
             args['__conduit__']['accessToken'] = self._oauth
         else:
             token = '%d' % time.time()
diff --git a/tests/test-check-config-hg.t b/tests/test-check-config-hg.t
--- a/tests/test-check-config-hg.t
+++ b/tests/test-check-config-hg.t
@@ -60,7 +60,7 @@
   undocumented: remotefilelog.fetchpacks (bool)
   undocumented: remotefilelog.fetchwarning (str)
   undocumented: remotefilelog.getfilesstep (int) [10000]
-  undocumented: remotefilelog.getfilestype (str) ['threaded']
+  undocumented: remotefilelog.getfilestype (str) ['optimistic']
   undocumented: remotefilelog.history.gencountlimit (int) [2]
   undocumented: remotefilelog.includepattern (list)
   undocumented: remotefilelog.pullprefetch (str)