Changeset 69809
- Timestamp:
- Nov 13, 2016, 2:51:53 PM (8 years ago)
- File:
-
- 1 edited
-
grass/trunk/lib/python/pygrass/vector/__init__.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
grass/trunk/lib/python/pygrass/vector/__init__.py
r69552 r69809 180 180 """ 181 181 self.n_lines += 1 182 if not isinstance(cat, int) and not isinstance(cat, str): 183 # likely the case of using 7.0 API 184 import warnings 185 warnings.warn("Vector.write(geo_obj, attrs=(...)) is" 186 " depreciated, specify cat explicitly", 187 DeprecationWarning) 188 # try to accommodate 189 attrs = cat 190 cat = None 182 191 if attrs and cat is None: 192 # TODO: this does not work as expected when there are 193 # already features in the map when we opened it 183 194 cat = (self._cats[-1] if self._cats else 0) + 1 184 195
Note:
See TracChangeset
for help on using the changeset viewer.
