[PATCH 1 of 3 V2] factotum: initialize global variables to suppress pyflakes warning

Yuya Nishihara yuya at tcha.org
Fri May 2 05:14:35 CDT 2014


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1399022650 -32400
#      Fri May 02 18:24:10 2014 +0900
# Node ID 0b3efdcc4c0138bd3d59d83da137012382f63a2c
# Parent  59cb794c9004693fcda9f28d3364279bc230865d
factotum: initialize global variables to suppress pyflakes warning

diff --git a/hgext/factotum.py b/hgext/factotum.py
--- a/hgext/factotum.py
+++ b/hgext/factotum.py
@@ -52,6 +52,8 @@ import os, urllib2
 
 ERRMAX = 128
 
+_executable = _mountpoint = _service = None
+
 def auth_getkey(self, params):
     if not self.ui.interactive():
         raise util.Abort(_('factotum not interactive'))


More information about the Mercurial-devel mailing list