瀏覽代碼

rename file to file_ to avoid trouble with file build-in

Guénaël Muller 7 年之前
父節點
當前提交
761718dd6c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tracim/command/database.py

+ 2 - 2
tracim/command/database.py 查看文件

@@ -124,8 +124,8 @@ class DeleteDBCommand(AppContextCommand):
124 124
             print('Cleaning depot begin.')
125 125
             depot = DepotManager.get()
126 126
             depot_files = depot.list()
127
-            for file in depot_files:
128
-                depot.delete(file)
127
+            for file_ in depot_files:
128
+                depot.delete(file_)
129 129
             print('Cleaning depot done.')
130 130
         else:
131 131
             print('Warning, You should use --force if you really want to'