Sfoglia il codice sorgente

temporal lib: wrap list() around dictionary as suggested by huhabla, fixes https://trac.osgeo.org/grass/ticket/3727

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@74089 15284696-431f-4ddb-bdfa-cd5b030d7da7
Veronica Andreo 6 anni fa
parent
commit
21ab883161
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/python/temporal/spatio_temporal_relationships.py

+ 1 - 1
lib/python/temporal/spatio_temporal_relationships.py

@@ -375,7 +375,7 @@ class SpatioTemporalTopologyBuilder(object):
 
     def _detect_first(self):
         if len(self) > 0:
-            prev_ = self._store.values()[0]
+            prev_ = list(self._store.values())[0]
             while prev_ is not None:
                 self._first = prev_
                 prev_ = prev_.prev()