[kupfer] fileactions: Add missing import OperationError



commit 0e3fc41d8aedf48a6de96c84cab7215ce3c36ea4
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Tue Mar 29 16:22:30 2011 +0200

    fileactions: Add missing import OperationError
    
    caught with pyflakes.

 kupfer/plugin/fileactions.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/plugin/fileactions.py b/kupfer/plugin/fileactions.py
index bc55d6a..511ba53 100644
--- a/kupfer/plugin/fileactions.py
+++ b/kupfer/plugin/fileactions.py
@@ -16,7 +16,8 @@ import os
 from os import path as os_path
 
 from kupfer.objects import Action, FileLeaf, TextLeaf, TextSource
-from kupfer import utils, pretty
+from kupfer.objects import OperationError
+from kupfer import pretty
 
 
 def _good_destination(dpath, spath):
@@ -105,7 +106,6 @@ class Rename (Action, pretty.OutputMixin):
 		return True
 	def activate(self, leaf, obj):
 		sfile = gio.File(leaf.object)
-		bname = sfile.get_basename()
 		dest = os_path.join(os_path.dirname(leaf.object), obj.object)
 		dfile = gio.File(dest)
 		try:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]