Fixed a bug in the pip package details dialog.

Thu, 19 Apr 2018 19:25:18 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 19 Apr 2018 19:25:18 +0200
changeset 6258
c1bb436b524d
parent 6257
4523c5e6dd43
child 6259
abbe684782af

Fixed a bug in the pip package details dialog.

Plugins/UiExtensionPlugins/PipInterface/PipPackageDetailsDialog.py file | annotate | diff | comparison | revisions
diff -r 4523c5e6dd43 -r c1bb436b524d Plugins/UiExtensionPlugins/PipInterface/PipPackageDetailsDialog.py
--- a/Plugins/UiExtensionPlugins/PipInterface/PipPackageDetailsDialog.py	Thu Apr 19 19:13:37 2018 +0200
+++ b/Plugins/UiExtensionPlugins/PipInterface/PipPackageDetailsDialog.py	Thu Apr 19 19:25:18 2018 +0200
@@ -190,10 +190,10 @@
         @rtype str
         """
         if isinstance(datetime, str):
-            date = datetime.split("T")[0]
+            return datetime.split("T")[0]
         else:
             date = datetime.value.split("T")[0]
-        return "{0}-{1}-{2}".format(date[:4], date[4:6], date[6:])
+            return "{0}-{1}-{2}".format(date[:4], date[4:6], date[6:])
     
     def __formatSize(self, size):
         """

eric ide

mercurial