From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Gm-Message-State: AMCzsaWgrj9/OY3FtxiMfhekqKvvgdAbkEGeXyUZP2OV9vbNURC6g/ly ai/XemYQbRf05IpEBKy3XomkPajYnnRHu0PqeD4= X-Google-Smtp-Source: ABhQp+QccecKyw0VmEKbzsndKp4oA5Jdza6fYMwCKY5csFg/1wQ1V46nt7zzOQtjko1MVT6zq/GIlaHgycHTtwudhH4= X-Received: by 10.80.153.48 with SMTP id k45mr650235edb.208.1508567535510; Fri, 20 Oct 2017 23:32:15 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <558aa688-03e6-d324-f9d5-2118827f08ce@ya.ru> References: <558aa688-03e6-d324-f9d5-2118827f08ce@ya.ru> From: Vitaly Kuznetsov Date: Sat, 21 Oct 2017 08:32:15 +0200 X-Gmail-Original-Message-ID: Message-ID: To: ALT Linux Team development discussions Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [devel] python.req error X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Oct 2017 06:32:16 -0000 Archived-At: List-Archive: List-Post: On Sat, Oct 21, 2017 at 8:12 AM, =D0=90=D0=BD=D1=82=D0=BE=D0=BD =D0=9C=D0= =B8=D0=B4=D1=8E=D0=BA=D0=BE=D0=B2 wrote: > =D0=9F=D0=BE=D0=B4=D1=81=D0=BA=D0=B0=D0=B6=D0=B8=D1=82=D0=B5, =D0=BF=D0= =BE=D0=B6=D0=B0=D0=BB=D1=83=D0=B9=D1=81=D1=82=D0=B0, =D1=87=D1=82=D0=BE =D0= =BD=D0=B5 =D0=BF=D0=BE=D0=BD=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D0=BE=D1=81=D1= =8C =D0=B2 =D1=81=D0=B8=D0=BD=D1=82=D0=B0=D0=BA=D1=81=D0=B8=D1=81=D0=B5 pyt= hon.req: > > python.req: ERROR: > /usr/src/tmp/Uranium-buildroot/usr/lib/uranium/plugins/LocalFileOutputDev= ice/LocalFileOutputDevice.py: > invalid syntax (line 159) > Traceback (most recent call last): > File "/usr/lib/rpm/python.req.py", line 230, in > lis =3D parser.suite('\n'.join(lines)+'\n').tolist(line_info=3D1) > File "", line 159 > raise > OutputDeviceError.PermissionDeniedError(catalog.i18nc("@info:status Don't > translate the XML tags !", "Permission denied when trying to sa= ve > {0}").format(file_name)) from e > ^ > SyntaxError: invalid syntax > raise ... from - =D1=8D=D1=82=D0=BE =D0=BA=D0=BE=D0=BD=D1=81=D1=82=D1=80=D1= =83=D0=BA=D1=86=D0=B8=D1=8F Python3: $ python2 Python 2.7.13 (default, Sep 5 2017, 08:53:59) [GCC 7.1.1 20170622 (Red Hat 7.1.1-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> try: ... 1/0 ... except: ... raise RuntimeError("Something bad happened") from None File "", line 4 raise RuntimeError("Something bad happened") from None ^ SyntaxError: invalid syntax $ python3 Python 3.6.2 (default, Oct 2 2017, 16:51:32) [GCC 7.2.1 20170915 (Red Hat 7.2.1-2)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> try: ... 1/0 ... except: ... raise RuntimeError("Something bad happened") from None ... Traceback (most recent call last): File "", line 4, in RuntimeError: Something bad happened https://docs.python.org/3/reference/simple_stmts.html#raise https://docs.python.org/2.7/reference/simple_stmts.html#raise