From b7fff853ac74f81021b7da25ee0754e547fb8859 Mon Sep 17 00:00:00 2001 From: jordan Date: Wed, 20 Jul 2011 11:31:43 +0000 Subject: [PATCH] use platform.uname() instead of os.uname(), it's platform independent and works fine on Windows machines git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1125 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum_modules/updates/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forum_modules/updates/base.py b/forum_modules/updates/base.py index 366ce4d..51fcdbe 100644 --- a/forum_modules/updates/base.py +++ b/forum_modules/updates/base.py @@ -1,5 +1,6 @@ import os import sys +import platform import bz2 import urllib2, urllib import binascii @@ -117,7 +118,7 @@ def check_for_updates(): 'python_version' : ''.join(sys.version.splitlines()), 'django_version' : str(DJANGO_VERSION), 'database' : database_type, - 'os' : str(os.uname()), + 'os' : str(platform.uname()), 'emails' : admin_emails_xml, } -- 2.39.5