Received: by 10.223.185.116 with SMTP id b49csp8835894wrg; Fri, 2 Mar 2018 08:45:04 -0800 (PST) X-Google-Smtp-Source: AG47ELsxIG3sUmEcPwnStlpsBXw/cD1wQwUF7ZfaW0W5uHGRPcgTQclX+YP6KKBQ0SpiTUSaNi41 X-Received: by 10.99.180.3 with SMTP id s3mr4980799pgf.258.1520009103872; Fri, 02 Mar 2018 08:45:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520009103; cv=none; d=google.com; s=arc-20160816; b=ApAI9LOsvvrYY+yiHcoAFSCZadOEf41s6aFFGVXkP5Mcump3M2Xcu/OzAjbML8eYEg NlE8WhDnSA9RPRoAusBXPwrKPpIvsoueHT5JVW12Qn9/+fll5xA8Q5ohaUW+wV+WxxNZ w5PlwXxOFkeCjgn0BHP15kMSVioC60akhIIj5zDObZfYPwc6OGHghUsBbDjFn2x94G1+ RmTurxJpLk3CtjH/heIWSkKCVEwYpjgu7HtwWxPV9+w6TV+R3hu2h7OuSjExbRFBJFVm mgm6n1QsyQU2jJ/LZy57JAKsTWF7cIGpr5ki2rfqokasIfXZ9aE/2Segu96Lh0dnwKsk EM3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=K3qQRx1M/BqfUVymRZ3vBqiOamWdjMfNdZ0Qx9h09y8=; b=oY+VpvcFshO8OwuIWNPgrHXuPTh/s8I0tiIRf4zu8f8S/sZ+12hDBhqcidcyeE5uwd zvPTrFTC3c3d+bZuzv4u3f6PINyIneMa9qs55g0ElGdh31McQm1AqkSQJckI1Ao3papQ XyWL7Dnz3yswTP69jUZxMaqqnDm5C/uK2jBNH0vS16g548XpI7uS5vyXqev3wMe4z8IH 0hU5D0D4FDwf4pKneIz5DjkXuZPtlFNzEC4pfOygMNXtl6gJgqYmB0wjBwCf7HFHw9e3 RUWOh1Qy+TjFh2iSujyJtmuiyl61c1rDCLfDVJKaa0vr0qnrwqeHIRYKJoqjB5ZRzdwF mbGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=AmzFmWCG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7-v6si4996027plp.538.2018.03.02.08.44.49; Fri, 02 Mar 2018 08:45:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=AmzFmWCG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967959AbeCBQm6 (ORCPT + 99 others); Fri, 2 Mar 2018 11:42:58 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:41856 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967452AbeCBQmz (ORCPT ); Fri, 2 Mar 2018 11:42:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=K3qQRx1M/BqfUVymRZ3vBqiOamWdjMfNdZ0Qx9h09y8=; b=AmzFmWCGYNUsyShWJlUsICQTC ZA3KPy3znHiQCWv8EzIXH+mpn8raBxdXHCbuEkRSptpREIKeW5Tv3scQJefoDDm2FkvroUuh96M8h mU8Zy7N9ziyHlKNR8kBlkDUIC2J1xmD7sPr2F6AOTzpMDRFlhW0XJ0gOgD2zO0dhVpP0hdom0yr49 qQ5+oxmmqA+ueMJxA5z0SpjOOqZPGMfv+BhtPY/h/HhxfaarxvencbKh+cDcYUUHuMuIqGGAdcHjn Li9tq5Ws+Q22dZ3k33o+xMe0CS4AyaDcu8906JRs3okznMhnQzD3Yjwh6Siuj8tycAHy7/oIzXXyc NHPummofQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1ernlm-0006jP-Il; Fri, 02 Mar 2018 16:42:54 +0000 Date: Fri, 2 Mar 2018 08:42:54 -0800 From: Matthew Wilcox To: Jani Nikula Cc: Takashi Iwai , Jonathan Corbet , Jiri Slaby , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] Documentation/sphinx: Fix Directive import error Message-ID: <20180302164254.GB31400@bombadil.infradead.org> References: <20180302152831.11510-1-tiwai@suse.de> <871sh2v53l.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871sh2v53l.fsf@intel.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 02, 2018 at 06:01:50PM +0200, Jani Nikula wrote: > On Fri, 02 Mar 2018, Takashi Iwai wrote: > > The sphinx.util.compat for Directive stuff was deprecated in the > > recent Sphinx version, and now we get a build error. > > > > Let's import from the new place, docutils.parsers.rst, while keeping > > the old sphinx.util.compat as fallback. > > > > Bugzilla: https://bugzilla.opensuse.org/show_bug.cgi?id=1083694 > > Signed-off-by: Takashi Iwai > > --- > > v1->v2: Change the fallback order as Matthew suggested, the new one at first > > So this crossed my mind as well... and then I thought it'll probably > succeed on older Sphinx, and the fallback is not needed. The question > is, are these equal? Can we just import from docutils.parsers.rst? I found a github page which implies that docutils.parsers.rst.Directive was added 12 years ago (!) so we're probably safe to rely on it: https://github.com/docutils-mirror/docutils/commit/9649abee47b4ce4db51be1d90fcb1fb500fa78b3 Again, I'm no pythonista, so I may have muddled this.