Bug fix
authorJakob <jakob@jcornell.net>
Fri, 6 Dec 2019 19:22:37 +0000 (13:22 -0600)
committerJakob <jakob@jcornell.net>
Fri, 6 Dec 2019 19:22:37 +0000 (13:22 -0600)
fs.py

diff --git a/fs.py b/fs.py
index 0a22c4f59c502ba0e3f1a984e8eef9e1de6aadcf..58ea4de20134d1677f93a4e6c0b95cc7a7dcad21 100644 (file)
--- a/fs.py
+++ b/fs.py
@@ -103,7 +103,7 @@ def _extract_version(path):
                if match:
                        version = int(match.group('version')) if match.group('version') else None
                        if (version is None) == path.is_dir():
-                               info = VersionInfo(match.group('id'), int(match.group('version')))
+                               info = VersionInfo(match.group('id'), version)
 
        return info