diff options
author | Simon Glass <sjg@chromium.org> | 2017-08-13 16:02:54 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-09-11 21:43:58 -0600 |
commit | c79d18c4b40d10c0a95b56e51f4517aca4515364 (patch) | |
tree | 94d5cdeb1e0dec0c5cc30bea2f2c44a421b5847a /lib | |
parent | 3991f42ed2e38aff28ba3c24369bfbd90620bea7 (diff) |
moveconfig: Use fd.write() instead of print >>
Adjust this code so that it can work with Python 2 and 3.
Fixes: d73fcb1 (moveconfig: Support building a simple config database)
Reported-by: Chris Packham <judge.packham@gmail.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libfdt/pylibfdt/libfdt.i | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libfdt/pylibfdt/libfdt.i b/lib/libfdt/pylibfdt/libfdt.i index 3b11bb0c951..146f4b942aa 100644 --- a/lib/libfdt/pylibfdt/libfdt.i +++ b/lib/libfdt/pylibfdt/libfdt.i @@ -8,6 +8,8 @@ %module libfdt +%include <stdint.i> + %{ #define SWIG_FILE_WITH_INIT #include "libfdt.h" |