EmilyDirsh / hotwire-shell

Automatically exported from code.google.com/p/hotwire-shell
Other
0 stars 0 forks source link

urllib unicode escaping error #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Traceback (most recent call last):
  File "/src/hotwire-shell/hotwire/command.py", line 310, in __run
    for result in self.builtin.execute(self.context, *target_args, **kwargs):
  File "/src/hotwire-shell/hotwire/builtins/ls.py", line 69, in execute
    for x in generator:
  File "/src/hotwire-shell/hotwire/builtins/ls.py", line 49, in __ls_dir
    yield fs.get_file_sync(x)
  File "/src/hotwire-shell/hotwire/sysdep/fs.py", line 60, in get_file_sync
    f = self.fileklass(path, fs=self)
  File "/src/hotwire-shell/hotwire/sysdep/fs_impl/fs_gnomevfs.py", line 45,
in __init__
    super(GnomeVfsFile, self).__init__(path, **kwargs)
  File "/src/hotwire-shell/hotwire/sysdep/fs_impl/fs_unix.py", line 52, in
__init__
    super(UnixFile, self).__init__(*args, **kwargs)
  File "/src/hotwire-shell/hotwire/sysdep/fs.py", line 179, in __init__
    self._uri = 'file://' + urllib.pathname2url(path)
  File "/usr/lib64/python2.5/urllib.py", line 60, in pathname2url
    return quote(pathname)
  File "/usr/lib64/python2.5/urllib.py", line 1205, in quote
    res = map(safe_map.__getitem__, s)
KeyError: u'\u0414'

Original issue reported on code.google.com by cgwalt...@gmail.com on 24 Jan 2008 at 5:24

GoogleCodeExporter commented 9 years ago
Committed r855
    M   hotwire/sysdep/fs.py
r855 = d4e0da4a16e8acc6a009c5b2d3ee8d9dfe8c1e42 (git-svn)

Original comment by cgwalt...@gmail.com on 25 Jan 2008 at 1:56