chiark / gitweb /
catacomb/pwsafe.py: Hack around the difference in octal literal syntax.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 21 Oct 2019 17:06:31 +0000 (18:06 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 11 Apr 2020 11:44:21 +0000 (12:44 +0100)
commit9ef0b2c998221c494dd446684e821f957c51e303
tree2f0e538f707292cb3d882693df78fa3af898d0a7
parent54ee272dfb207d6d20cd3217f7f100751496772d
catacomb/pwsafe.py: Hack around the difference in octal literal syntax.

Python 2.5 wants `0DIGITS', while Python 3 insists on `0oDIGITS'.  The
latter is prettier, but the difference is annoying.  We only need these
for Unix permissions, so just set up the ones we want in advance using
an explicit conversion from strings.
catacomb/pwsafe.py