[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Bug found in pyqtdeploy 2.3
From:       José_Antonio_Fernández_Fernández <aullasistemas () gmail
Date:       2018-11-20 12:46:20
Message-ID: CAD7iEcci4r9bUm=grhLn9z8ZJmAVgVNpUr097zjXmyNfaGDYVg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi all. I found a bug in the last release 2.3.

In the file pyqtdeploy / sysroot / plugins / python / python.py: 407,
the variable cls is referenced, but it does not exist:

@staticmethod
    def _major_minor_as_string (sysroot):
        "" "Return the Python major.minor as a string." ""

        major, minor = cls._major_minor (sysroot)

        return str (major) + '.' + str (minor)

I have solved it like this:


    @staticmethod
    def _major_minor_as_string (sysroot):
        "" "Return the Python major.minor as a string." ""

        major, minor, _ = sysroot.decode_version_nr (
                sysroot.target_py_version_nr)

I hope to be helpful. regards



-- 
Cuenta de correo propiedad de FERNÁNDEZ FERNÁNDEZ, JOSÉ ANTONIO y de uso
estrictamente profesional. Este mensaje electrónico está dirigido
únicamente a la(s) direcciones indicadas anteriormente: el carácter
confidencial, personal e intransferible del mismo está protegido legalmente.
Cualquier revelación, uso o reenvío no autorizado, completo o en parte está
prohibido. Si ha recibido este mensaje por equivocación notifíquelo
inmediatamente a la persona que lo remite y borre el mensaje original junto
con sus ficheros anexos sin leerlo ni grabarlo total o parcialmente. Si
usted no desea recibir correos de nuestra empresa, por favor, envíenos un
correo a AULLASISTEMAS@GMAIL.COM manifestando tal deseo

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail-oSioSc"><div id="gmail-tw-target"><div \
class="gmail-gsrt gmail-tw-ta-container gmail-tw-nfl" \
id="gmail-tw-target-text-container"><pre class="gmail-tw-data-text gmail-tw-ta \
gmail-tw-text-small" id="gmail-tw-target-text" style="text-align:left;height:768px" \
dir="ltr"><span lang="en">Hi all. I found a bug in the last release 2.3.

In the file pyqtdeploy / sysroot / plugins / python / python.py: 407, the variable \
cls is referenced, but it does not exist:

@staticmethod
        def _major_minor_as_string (sysroot):
                &quot;&quot; &quot;Return the Python major.minor as a string.&quot; \
&quot;&quot;

                major, minor = cls._major_minor (sysroot)

                return str (major) + &#39;.&#39; + str (minor)

I have solved it like this:


        @staticmethod
        def _major_minor_as_string (sysroot):
                &quot;&quot; &quot;Return the Python major.minor as a string.&quot; \
&quot;&quot;

                major, minor, _ = sysroot.decode_version_nr (
                                sysroot.target_py_version_nr)

I hope to be helpful. regards</span></pre></div></div></div><br clear="all"><br>-- \
<br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Cuenta de \
correo propiedad de FERNÁNDEZ FERNÁNDEZ, JOSÉ ANTONIO y de uso estrictamente \
profesional. Este mensaje electrónico está dirigido únicamente a la(s) direcciones \
indicadas anteriormente: el carácter confidencial, personal e intransferible del \
mismo está protegido legalmente.<br>Cualquier revelación, uso o reenvío no \
autorizado, completo o en parte está prohibido. Si ha recibido este mensaje por \
equivocación notifíquelo inmediatamente a la persona que lo remite y borre el \
mensaje original junto con sus ficheros anexos sin leerlo ni grabarlo total o \
parcialmente. Si usted no desea recibir correos de nuestra empresa, por favor, \
envíenos un correo a <a href="mailto:AULLASISTEMAS@GMAIL.COM" \
target="_blank">AULLASISTEMAS@GMAIL.COM</a> manifestando tal deseo<br></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic