summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/external-cross-compile/src/tochar.py
blob: c0780d984f0e5ec5f3c57187111be83c6ae3ff07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import sys

src = open(sys.argv[1])
dst = open(sys.argv[2], 'w')
for ch in src.read():
  dst.write('%d,\n' % ord(ch))
src.close()
dst.close()