Plugins/UiExtensionPlugins/PipInterface/PipPackageDetailsDialog.py

changeset 6258
c1bb436b524d
parent 6253
a148632e9610
child 6287
9a193ff6d24a
--- 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