Make use of new module constfunc.

svn: r14286
This commit is contained in:
Peter Landgren 2010-02-08 17:26:22 +00:00
parent c6641878c2
commit 9d20446bc5

View File

@ -5493,7 +5493,7 @@ class NavWebReport(Report):
tarinfo = tarfile.TarInfo(self.cur_fname)
tarinfo.size = len(self.string_io.getvalue())
tarinfo.mtime = time.time()
if os.sys.platform != "win32":
if not constfunc.win():
tarinfo.uid = os.getuid()
tarinfo.gid = os.getgid()
self.string_io.seek(0)