From owner-freebsd-python@freebsd.org  Fri Dec 11 22:06:16 2020
Return-Path: <owner-freebsd-python@freebsd.org>
Delivered-To: freebsd-python@mailman.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.nyi.freebsd.org (Postfix) with ESMTP id EA8134BC46C
 for <freebsd-python@mailman.nyi.freebsd.org>;
 Fri, 11 Dec 2020 22:06:16 +0000 (UTC)
 (envelope-from bsd-lists@bsdforge.com)
Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com
 [24.113.41.81])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
 client-signature RSA-PSS (4096 bits) client-digest SHA256)
 (Client CN "ultimatedns.net",
 Issuer "Let's Encrypt Authority X3" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 4Ct4cS4yh5z3Dbj
 for <freebsd-python@freebsd.org>; Fri, 11 Dec 2020 22:06:16 +0000 (UTC)
 (envelope-from bsd-lists@bsdforge.com)
Received: from ultimatedns.net (localhost [127.0.0.1])
 by udns.ultimatedns.net (8.16.1/8.16.1) with ESMTP id 0BBM6B4I045401
 for <freebsd-python@freebsd.org>; Fri, 11 Dec 2020 14:06:17 -0800 (PST)
 (envelope-from bsd-lists@bsdforge.com)
MIME-Version: 1.0
Date: Fri, 11 Dec 2020 14:06:10 -0800
From: Chris <bsd-lists@bsdforge.com>
To: freebsd-python <freebsd-python@freebsd.org>
Subject: simple python 2 to python question
User-Agent: UDNSMS/17.0
Message-ID: <6a21383315418d6ca2711709bd173e08@bsdforge.com>
X-Sender: bsd-lists@bsdforge.com
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
X-Rspamd-Queue-Id: 4Ct4cS4yh5z3Dbj
X-Spamd-Bar: /
Authentication-Results: mx1.freebsd.org;
	none
X-Spamd-Result: default: False [0.00 / 15.00];
 ASN(0.00)[asn:11404, ipnet:24.113.0.0/16, country:US];
 local_wl_ip(0.00)[24.113.41.81]
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-python>, 
 <mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python/>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-python>,
 <mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 11 Dec 2020 22:06:17 -0000

Hello all,
I'm working on a port I maintain to become py3x compatible.
I'm down to one lousy error:
passwd.py", line 25    chmod(self.pw_file, 0600)
                            ^
SyntaxError: invalid token

I tried to sort it, but failed. So allowed 2to3 to take a shot
at it, and it returned:
chmod(self.pw_file, 0o600)

which just seems wrong.

What am I missing -- aside from more familiarity with python3 ;-)

Thanks!

--Chris