diff options
author | William Deegan <bill@baddogconsulting.com> | 2020-04-16 16:24:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-16 16:24:20 (GMT) |
commit | f33588271babffc6a75f1a753f262578a853b09f (patch) | |
tree | 86388d335ae02ddf03c75596346425b0a91f578d /bin/scons-proc.py | |
parent | 880c0e09434c3e7e71b6a72db9d0e9b367f9fda5 (diff) | |
parent | d3f1aa7d7225bff44a18b7ccaad52af071494dab (diff) | |
download | SCons-f33588271babffc6a75f1a753f262578a853b09f.zip SCons-f33588271babffc6a75f1a753f262578a853b09f.tar.gz SCons-f33588271babffc6a75f1a753f262578a853b09f.tar.bz2 |
Merge pull request #3603 from bdbaddog/revamp_scons_build
Revamp scons build - Modernize packaging and purge obsolete build logic
Diffstat (limited to 'bin/scons-proc.py')
-rw-r--r-- | bin/scons-proc.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/scons-proc.py b/bin/scons-proc.py index ac52894..9923ac1 100644 --- a/bin/scons-proc.py +++ b/bin/scons-proc.py @@ -11,10 +11,7 @@ # import getopt import os -import re -import string import sys -from io import StringIO # usable as of 2.6; takes unicode only import SConsDoc from SConsDoc import tf as stf @@ -107,10 +104,10 @@ class SCons_XML(object): for k, v in kw.items(): setattr(self, k, v) - def fopen(self, name): + def fopen(self, name, mode='w'): if name == '-': return sys.stdout - return open(name, 'w') + return open(name, mode) def write(self, files): gen, mod = files.split(',') |