nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

python3.patch (630B)


      1 diff --git i/maprec/map_record.py w/maprec/map_record.py
      2 index 2a58b0f..d1ce585 100644
      3 --- i/maprec/map_record.py
      4 +++ w/maprec/map_record.py
      5 @@ -161,7 +161,7 @@ class Maprecord(object):
      6              data['image_size'] = os.path.getsize(self.image_path)
      7              data['image_mtime'] = os.path.getmtime(self.image_path)
      8              data = json.dumps(data)
      9 -            self._fingerprint = hashlib.sha1(data).hexdigest()
     10 +            self._fingerprint = hashlib.sha1(str(data).encode('utf-8')).hexdigest()
     11          return self._fingerprint
     12  
     13  #def write(filename, image_path, srs, gcps, cutline=None, image_path_relative=True):