Просмотр исходного кода

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

Guénaël Muller 6 лет назад
Родитель
Сommit
761718dd6c
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2 2
      tracim/command/database.py

+ 2 - 2
tracim/command/database.py Просмотреть файл

124
             print('Cleaning depot begin.')
124
             print('Cleaning depot begin.')
125
             depot = DepotManager.get()
125
             depot = DepotManager.get()
126
             depot_files = depot.list()
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
             print('Cleaning depot done.')
129
             print('Cleaning depot done.')
130
         else:
130
         else:
131
             print('Warning, You should use --force if you really want to'
131
             print('Warning, You should use --force if you really want to'