~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/fileservice_lib/listing.py

  • Committer: Matt Giuca
  • Date: 2010-02-18 07:05:19 UTC
  • Revision ID: matt.giuca@gmail.com-20100218070519-aeo8bzpzc80qsz0s
fileservice: Fixed a comparison from unicode and not unicode strings, so the directory listing of a file/dir with non-ASCII characters works. Fixes editor for such files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
356
356
    needs to display about the filename. Returns a pair mapping filename to
357
357
    a dict containing a number of other fields."""
358
358
    path = os.path.normcase(path)
359
 
    fullpath = status.path
 
359
    if isinstance(status.path, str):
 
360
        fullpath = status.path
 
361
    else:
 
362
        fullpath = status.path.encode("utf-8")
360
363
    # If this is "." (the directory itself)
361
364
    if path == os.path.normcase(fullpath):
362
365
        # If this directory is unversioned, then we aren't