about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorVictor Lopez <bigbigtor@users.noreply.github.com>2019-02-24 20:59:52 +0000
committerVictor Lopez <bigbigtor@users.noreply.github.com>2019-02-24 20:59:52 +0000
commit02efcd603b5ebfd76823afdc15dee3878dad04db (patch)
treeac15fd32a22d1d4824c7fa7c52bc7967f474d502
parentbf0ccb4c567a2451e9a2af8cf8f35b2821993385 (diff)
downloadranger-02efcd603b5ebfd76823afdc15dee3878dad04db.tar.gz
filter out empty lines before parsing the status
-rw-r--r--ranger/ext/vcs/svn.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/ext/vcs/svn.py b/ranger/ext/vcs/svn.py
index ef958a24..27216a43 100644
--- a/ranger/ext/vcs/svn.py
+++ b/ranger/ext/vcs/svn.py
@@ -98,6 +98,7 @@ class SVN(Vcs):
 
         # Paths with status
         lines = self._run(['status']).split('\n')
+        lines = list(filter(None, lines))
         if not lines:
             return 'sync'
         for line in lines:
@@ -116,6 +117,7 @@ class SVN(Vcs):
 
         # Paths with status
         lines = self._run(['status']).split('\n')
+        lines = list(filter(None, lines))
         for line in lines:
             code, path = line[0], line[8:]
             if code == ' ':
134' href='#n134'>134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243