Update of /cvsroot/pywin32/pywin32/win32/Demos
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv17949/win32/Demos
Modified Files:
getfilever.py
Log Message:
avoid printing extended chars to the console
Index: getfilever.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/Demos/getfilever.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** getfilever.py 18 Oct 2003 06:15:48 -0000 1.1
--- getfilever.py 27 Nov 2008 09:30:28 -0000 1.2
***************
*** 8,12 ****
d=win32api.GetFileVersionInfo(fname, '\\')
## backslash as parm returns dictionary of numeric info corresponding to VS_FIXEDFILEINFO struc
! for n, v in d.items():
print n, v
--- 8,12 ----
d=win32api.GetFileVersionInfo(fname, '\\')
## backslash as parm returns dictionary of numeric info corresponding to VS_FIXEDFILEINFO struc
! for n, v in d.iteritems():
print n, v
***************
*** 19,23 ****
str_info=u'\\StringFileInfo\\%04X%04X\\%s' %(lang,codepage,ver_string)
## print str_info
! print ver_string, win32api.GetFileVersionInfo(fname, str_info)
--- 19,23 ----
str_info=u'\\StringFileInfo\\%04X%04X\\%s' %(lang,codepage,ver_string)
## print str_info
! print ver_string, repr(win32api.GetFileVersionInfo(fname, str_info))
|