Theorem 2
Tag 0BG3, permanent. Cite it as [Bourbaki, Tag 0BG3].
General Topology, chapter II, § 4. Relations between uniform spaces and compact spaces
Every continuous mapping of a compact space into a uniform space is uniformly continuous.
Let , then is continuous on (Chapter I, § 4, no. 1, Proposition 1, Corollary 1); hence for each open entourage of , is an open subset of , which evidently contains the diagonal. The theorem thus follows from Theorem 1, since the open entourages of form a fundamental system of entourages (§ 1, no. 2, Proposition 2, Corollary 2).
Under the hypotheses of Theorem 2, the restriction of to any subspace of is uniformly continuous; hence (§ 3, no. 6, Theorem 2):
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.