Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(609)

Unified Diff: third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/generator.py

Issue 877993004: Revert "Update mojo sdk to rev 8d45c89c30b230843c5bd6dd0693a555750946c0" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/generator.py
diff --git a/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/generator.py b/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/generator.py
index 401c399e9e62afd9e54de5196d85ea5eb3f97a9c..af14ead8cbc2c8c110467bffb28d101dc3866204 100644
--- a/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/generator.py
+++ b/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/generator.py
@@ -9,7 +9,6 @@ import os.path
import re
import module as mojom
-import mojom.fileutil as fileutil
import pack
def GetStructFromMethod(method):
@@ -51,7 +50,8 @@ def CamelCaseToAllCaps(camel_case):
def WriteFile(contents, full_path):
# Make sure the containing directory exists.
full_dir = os.path.dirname(full_path)
- fileutil.EnsureDirectoryExists(full_dir)
+ if not os.path.exists(full_dir):
+ os.makedirs(full_dir)
# Dump the data to disk.
with open(full_path, "w+") as f:

Powered by Google App Engine
This is Rietveld 408576698