eric6/Plugins/VcsPlugins/vcsPySvn/SvnPropListDialog.py

changeset 8220
006ee31b4835
parent 8218
7c09585bd960
child 8222
5994b80b8760
--- a/eric6/Plugins/VcsPlugins/vcsPySvn/SvnPropListDialog.py	Sun Apr 11 11:34:32 2021 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsPySvn/SvnPropListDialog.py	Sun Apr 11 12:38:16 2021 +0200
@@ -124,15 +124,12 @@
             try:
                 for name in fnames:
                     proplist = self.client.proplist(name, recurse=recursive)
-                    counter = 0
-                    for path, prop in proplist:
+                    for counter, (path, prop) in enumerate(proplist):
                         for propName, propVal in list(prop.items()):
                             self.__generateItem(path, propName, propVal)
                             self.propsFound = True
-                        counter += 1
-                        if counter == 30:
+                        if counter % 30 == 0:
                             # check for cancel every 30 items
-                            counter = 0
                             if self._clientCancelCallback():
                                 break
                     if self._clientCancelCallback():

eric ide

mercurial