Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv32042/pywin
Modified Files:
__init__.py
Log Message:
nuke a few dangling references to is_platform_unicode and default_platform_encoding
Index: __init__.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/__init__.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** __init__.py 14 Nov 2008 00:22:25 -0000 1.5
--- __init__.py 31 Jan 2009 05:56:01 -0000 1.6
***************
*** 1,11 ****
! # See if we run in Unicode mode.
! # This may be referenced all over the place, so we save it globally.
! import win32api, win32con
!
! # This doesn't seem to work correctly on NT - see bug 716708
is_platform_unicode = 0
- #is_platform_unicode = hasattr(__builtin__, "unicode") and win32api.GetVersionEx()[3] == win32con.VER_PLATFORM_WIN32_NT
- default_platform_encoding = "mbcs" # Will it ever be necessary to change this?
- default_scintilla_encoding = "utf-8" # Scintilla _only_ supports this ATM
! del win32api, win32con
--- 1,10 ----
! # is_platform_unicode is an old variable that was never correctly used and
! # is no longer referenced in pywin32. It is staying for a few releases incase
! # others are looking at it, but it will go away soon!
is_platform_unicode = 0
! # Ditto default_platform_encoding - not referenced and will die.
! default_platform_encoding = "mbcs"
!
! # This one *is* real and used - but in practice can't be changed.
! default_scintilla_encoding = "utf-8" # Scintilla _only_ supports this ATM
|