summaryrefslogtreecommitdiff
path: root/giscanner/dumper.py
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2011-09-19 20:20:35 +0200
committerDieter Verfaillie <dieterv@optionexplicit.be>2011-09-19 20:32:46 +0200
commit241eedc30d220963c966efa7b411dda4531c02ce (patch)
treeeb819b7c4a16b581223aea77195eb20cc3af8e0b /giscanner/dumper.py
parent0a73abbd904150a3f97aae64be3974080af1ff2d (diff)
downloadgobject-introspection-241eedc30d220963c966efa7b411dda4531c02ce.tar.gz
Fix incorrect extension for tempfile
I set ext to None in commit f2a70843905839a1b11795310d2aa3b85a474e77 without realizing _generate_tempfile does a simple string formatting. A simple test proves this does not generate an empty string: $ python -c "f = '%s' % None; print f, type(f)" None <type 'str'> So pass an empty string instead of None for the suffix parameter. https://bugzilla.gnome.org/show_bug.cgi?id=659502
Diffstat (limited to 'giscanner/dumper.py')
-rw-r--r--giscanner/dumper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index a6347d81..1a8fdb56 100644
--- a/giscanner/dumper.py
+++ b/giscanner/dumper.py
@@ -149,7 +149,7 @@ class DumpCompiler(object):
if os.name == 'nt':
ext = 'exe'
else:
- ext = None
+ ext = ''
bin_path = self._generate_tempfile(tmpdir, ext)