From 6b8684b1d76a529ee7b07d01d153518e771267c8 Mon Sep 17 00:00:00 2001 From: gryf Date: Sun, 30 Jun 2019 16:53:16 +0200 Subject: [PATCH] Update uadf to support py3 --- uadf | 74 ++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 42 insertions(+), 32 deletions(-) diff --git a/uadf b/uadf index 6756f7b..4dce989 100755 --- a/uadf +++ b/uadf @@ -1,11 +1,11 @@ -#! /usr/bin/env python +#!/usr/bin/env python3 """ UADF Virtual filesystem This extfs provides quick and dirty read-only access to disk image files for the Commodore Amiga adf or adz (gzipped adfs) and dms. -It requires the unadf utility (unfortunately there is no original sources, +It requires the unadf utility, unfortunately there is no original sources, since authors page doesn't exists anymore. Luckily, there is a copy of the source (and useful patches) in Debian repository: http://packages.debian.org/sid/unadf @@ -15,16 +15,19 @@ There should be one change made to the source of unadf, though. While using However there is no way to distinguish where filename ends and comment starts, if comment or filename already contains any comma. +The patched sources are available from: https://github.com/lclevy/ADFlib + It also requires xdms utility, for optional dms support. Changelog: + 1.3 Switch to Python3 1.2 Added failsafe for filenames in archive with spaces and nodos message. 1.1 Moved common code into extfslib library 1.0 Initial release Author: Roman 'gryf' Dobosz -Date: 2013-05-16 -Version: 1.2 +Date: 2019-06-30 +Version: 1.3 Licence: BSD """ @@ -43,17 +46,17 @@ class UAdf(Archive): """ Class for interact with c1541 program and MC """ - LINE_PAT = re.compile('\s*(?P\d+)?' - '\s{2}(?P\d{4}/\d{2}/\d{2})' - '\s{2}\s?(?P