~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/win32utils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-10-23 17:59:52 UTC
  • mfrom: (3788.1.5 msvc_python24)
  • Revision ID: pqm@pqm.ubuntu.com-20081023175952-0gr8np56nf6ab5yn
(jam) Allow extensions to compile for python2.4 and using msvc

Show diffs side-by-side

added added

removed removed

Lines of Context:
320
320
 
321
321
def _ensure_unicode(s):
322
322
    if s and type(s) != unicode:
 
323
        from bzrlib import osutils
323
324
        s = s.decode(osutils.get_user_encoding())
324
325
    return s
325
326