summaryrefslogtreecommitdiffstats
path: root/ppapi/generators
diff options
context:
space:
mode:
authorteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-19 17:32:28 +0000
committerteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-19 17:32:28 +0000
commit4d0dd1670559cb733dd3a7ce328983c957b6da09 (patch)
treef8cc163709d5945bf51ef72a951ec1e73ee6356d /ppapi/generators
parentcb5f011e7a28818391c6a0b85e26688e7557fdf2 (diff)
downloadchromium_src-4d0dd1670559cb733dd3a7ce328983c957b6da09.zip
chromium_src-4d0dd1670559cb733dd3a7ce328983c957b6da09.tar.gz
chromium_src-4d0dd1670559cb733dd3a7ce328983c957b6da09.tar.bz2
idl_c_header: Use "/" as path separator in "From".
Generating C headers on windows changes the direction of the slash, rewriting every C header when generator.py is run. This appears to be a regression in commit 6faeb209. BUG= Review URL: https://chromiumcodereview.appspot.com/11637004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173941 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/generators')
-rwxr-xr-xppapi/generators/idl_c_header.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ppapi/generators/idl_c_header.py b/ppapi/generators/idl_c_header.py
index 7311472..94f9f73 100755
--- a/ppapi/generators/idl_c_header.py
+++ b/ppapi/generators/idl_c_header.py
@@ -177,7 +177,7 @@ class HGen(GeneratorByFile):
out.Write('%s\n' % cgen.Copyright(cright_node))
# Wrap the From ... modified ... comment if it would be >80 characters.
- from_text = 'From %s' % GetPathFromNode(filenode)
+ from_text = 'From %s' % GetPathFromNode(filenode).replace(os.sep, '/')
modified_text = 'modified %s.' % (
filenode.GetProperty('DATETIME'))
if len(from_text) + len(modified_text) < 74: