eric6/Utilities/FtpUtilities.py

changeset 8235
78e6d29eb773
parent 8218
7c09585bd960
child 8268
6b8128e0c9d1
--- a/eric6/Utilities/FtpUtilities.py	Tue Apr 13 18:02:59 2021 +0200
+++ b/eric6/Utilities/FtpUtilities.py	Tue Apr 13 19:59:17 2021 +0200
@@ -236,10 +236,7 @@
         """
         try:
             month, day, year = [int(part) for part in date.split('-')]
-            if year >= 70:
-                year = 1900 + year
-            else:
-                year = 2000 + year
+            year = 1900 + year if year >= 70 else 2000 + year
         except (ValueError, IndexError):
             raise FtpDirLineParserError(
                 "illegal date string '{0}'".format(month))

eric ide

mercurial