[kupfer] plugin.text: No partial import from modules
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] plugin.text: No partial import from modules
- Date: Fri, 6 Nov 2009 20:59:17 +0000 (UTC)
commit dc7c325d0824bd6c30223b585f4378d523495c9a
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Thu Nov 5 23:38:16 2009 +0100
plugin.text: No partial import from modules
kupfer/plugin/text.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/kupfer/plugin/text.py b/kupfer/plugin/text.py
index 309e65b..71a6ff7 100644
--- a/kupfer/plugin/text.py
+++ b/kupfer/plugin/text.py
@@ -1,4 +1,4 @@
-from os import path, access, R_OK
+import os
from urlparse import urlparse, urlunparse
import gobject
@@ -34,11 +34,11 @@ class PathTextSource (TextSource):
return 80
def get_items(self, text):
# Find directories or files
- prefix = path.expanduser(u"~/")
- filepath = text if path.isabs(text) else path.join(prefix, text)
+ prefix = os.path.expanduser(u"~/")
+ filepath = text if os.path.isabs(text) else os.path.join(prefix, text)
# use filesystem encoding here
filepath = gobject.filename_from_utf8(filepath)
- if access(filepath, R_OK):
+ if os.access(filepath, os.R_OK):
yield FileLeaf(filepath)
def provides(self):
yield FileLeaf
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]