User:WindBOT/CoreSource: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "<pre><nowiki>#!/usr/bin/python -OO # -*- coding: utf-8 -*- # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public L...")
 
No edit summary
Line 83: Line 83:
return self.func(*(self.pending + args), **kw)
return self.func(*(self.pending + args), **kw)
def getTempFilename():
def getTempFilename():
f = tempfile.mkstemp()
global config
f = tempfile.mkstemp(prefix=config['prefix'])
os.close(f[0]) # Damn you Python I just want a filename
os.close(f[0]) # Damn you Python I just want a filename
return f[1]
return f[1]

Navigation menu