소스 검색

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 년 전
부모
커밋
21ab883161
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()