Path: csiph.com!weretis.net!feeder4.news.weretis.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod From: Karsten Hilbert Newsgroups: linux.debian.maint.python Subject: Re: TypeError: ord() expected a character, but string of length 3 found (Was: Updated python-uncertainties) Date: Mon, 15 Oct 2018 12:10:01 +0200 Message-ID: References: X-Original-To: PICCA Frederic-Emmanuel X-Mailbox-Line: From debian-python-request@lists.debian.org Mon Oct 15 10:08:33 2018 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.699 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmx. - helo: .mout.gmx. - helo-domain: .gmx.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Ma_X_Il-Followup-To: d Re_X_Turn-Receipt-To: Karsten.Hilbert@gmx.net Di_X_Sposition-Notification-To: Karsten.Hilbert@gmx.net X-Confi_X_Rm-Reading-To: Karsten.Hilbert@gmx.net X-Pri_X_Ority: 2 (High) User-Agent: Mutt/1.10.1 (2018-07-13) Sender: robomod@news.nic.it X-Provags-ID: V03:K1:3RLb/uML47hkafYPWU0NtpSalxlTemdeEC174mgZbscSum+0KkR eDtuyQ9JElPd9fhY9KEK7+AFodERFkJxkbd5uO8Fb9ceaP8dHGfrR4WVlqITKbR+U8YZiPk IUn8ThlE7/55V3bPzoaKm+bXHAky+ng9GY4RIXdHJUhJUOm8x7D1YbLH+W+1ca+zS1n0Rj4 7moLsDV0UEQFfETe9dWHg== X-Ui-Out-Filterresults: notjunk:1;V01:K0:682qesrC5+k=:Lvv/mnYtUfkcvyBrZDJ4Hh BiEXrqg8v/x3++1zkao42WoZHneBQlXw+IYNqD4AfojSlUzdxmk/YOHrdIEH/c2jVoSChP8pM mp252gCvfNT15kJuSqYXscCoqImuDi9dwoq3uirmu2F0+7WWGnrs4SB9oqTH8dVj7hbTiIP0w QLJ/f09vfQi5rEarX0nS/YiMZmw0PNNoTXe7oFQWQy2tBObHnZbFECejYYdXdk6fdhSaKOyMJ Rs89uNDnMVZh8BT1NxTSkAPsOMTC0OIw0/GN1Jrf9Wo033tWzuzUCBCSPQpaiYMJpKWJjJ/yj Zrd+7w1axsK9KoPcgibNyUoSnECHtdfXCELPz6rApyQObZqnLub+k3LLss1RpjNo7IPRRWiim VGTOX2n/FQp1TELSz5/qnJ9cUPkiZe5e2Dk/CrE/Jwx26b28jd2h+cD7PEr9M0r5RAVt1jAOk AswOK+90eye9Di3tYqXl0BlCUPW9j1nxA9jbLz5aifzAfGuoCSgNhbpIQNKTsFH3LpUjJbMVJ vk8hahgiN72u4nqJLJ64+X+gkQP2lTBBLbZX6Zn/tqn087tVg4zO4dpeqYqCJqYunygW7+unT CtOwBRIo3+SuFH6V2wXowDJuHg5p+l6JrzcZISwAUvoPga3ogfo4zRxiIYYlGZJ7JvY0vxld8 AtDKu5Hk6FIGDgeMYBuEcb24D1srvIAqtTnWkmN5l11TMt4dmLJuUPjaOkbnGESMzKdLmMEVh pWuwx9h5CGpVw54s9iVoi4WsDJkVMD3cAN88nSJdBxcGb2q9vwQRp9NOkaDCf2lBmj5ss/ClB Jb9E+FXYTMaJTEDq+tHRsuDkIOvZw== X-Mailing-List: archive/latest/16436 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20181015100812.GA2008@hermes.hilbert.loc Approved: robomod@news.nic.it Lines: 21 Organization: linux.* mail to news gateway X-Original-Cc: Andreas Tille , "debian-python@lists.debian.org" X-Original-Date: Mon, 15 Oct 2018 12:08:12 +0200 X-Original-Message-ID: <20181015100812.GA2008@hermes.hilbert.loc> X-Original-References: <20181012061902.mf7vngqnwvxdge2s@an3as.eu> <20181012111533.4ym6loirbvnr2fnx@an3as.eu> <1539343938.2065153.1539680744.792D0909@webmail.messagingengine.com> <20181012124426.37nixbp2qupadu4o@an3as.eu> <20181012141757.lpt5lmh4dhuzdsb3@an3as.eu> <20181012161900.q4eama42xml7ppo7@sar0.p1otr.com> <20181015093737.wfrvaixo2bdmwvav@an3as.eu> X-Original-Sender: Xref: csiph.com linux.debian.maint.python:11004 On Mon, Oct 15, 2018 at 09:40:27AM +0000, PICCA Frederic-Emmanuel wrote: > I found in the code a string with a ur'' > > This is the problematic line. > > I do not know if this is a valid string construction. Under Python 2 it is. Under Python 3 it is not. u'test' is valid but extraneous r'test' is valid but extraneous Since this is about reguular expressions I would suggest just using 'the regex' under Python 3. Karsten -- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B