dan mackinlay avatar dan mackinlay committed 4bdd5c9

remove "trasher" dependency

Comments (0)

Files changed (2)

 
 install_requires = [
     "mechanize",
-    "nose",     #this should be made optional for end-users
-    "trasher",  #this should be made optional
-    "openmeta", #this should be made optional
+    "nose",     #TODO: this should be made optional for end-users
+    "openmeta", #TODO: this should be made optional
 ]
 
 

src/citeulike_api/citeulike_api.py

 import os.path
 import hashlib
 import openmeta
-from trasher import trash
 import glob
 
 def sha1_digest(userfiles):
         
         for unknown_attachment in (all_attachments-known_attachments):
             print "unknown attachment '%s'" % unknown_attachment
-            trash(os.path.abspath(unknown_attachment))
+            os.remove(os.path.abspath(unknown_attachment))
             
                 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.