Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jan 2018 12:40:37 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r459602 - in head/security/py-volatility: . files
Message-ID:  <201801211240.w0LCebr0013645@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Sun Jan 21 12:40:37 2018
New Revision: 459602
URL: https://svnweb.freebsd.org/changeset/ports/459602

Log:
  Fix a deprecation warning when using psxview with xlsx output

Modified:
  head/security/py-volatility/Makefile
  head/security/py-volatility/files/patch-volatility_plugins_malware_psxview.py

Modified: head/security/py-volatility/Makefile
==============================================================================
--- head/security/py-volatility/Makefile	Sun Jan 21 12:38:25 2018	(r459601)
+++ head/security/py-volatility/Makefile	Sun Jan 21 12:40:37 2018	(r459602)
@@ -3,7 +3,7 @@
 
 PORTNAME=	volatility
 PORTVERSION=	2.6
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	security python
 MASTER_SITES=	http://downloads.volatilityfoundation.org/releases/${PORTVERSION}/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

Modified: head/security/py-volatility/files/patch-volatility_plugins_malware_psxview.py
==============================================================================
--- head/security/py-volatility/files/patch-volatility_plugins_malware_psxview.py	Sun Jan 21 12:38:25 2018	(r459601)
+++ head/security/py-volatility/files/patch-volatility_plugins_malware_psxview.py	Sun Jan 21 12:40:37 2018	(r459602)
@@ -47,9 +47,12 @@
          ws = wb.create_sheet()
          ws.title = "Psxview Output"
          ws.append(["Offset (P)",
-@@ -350,13 +350,13 @@ class PsXview(common.AbstractWindowsComm
+@@ -348,15 +348,15 @@ class PsXview(common.AbstractWindowsComm
+         wb.save(filename = self._config.OUTPUT_FILE)
+ 
          wb = load_workbook(filename = self._config.OUTPUT_FILE)
-         ws = wb.get_sheet_by_name(name = "Psxview Output")
+-        ws = wb.get_sheet_by_name(name = "Psxview Output")
++        ws = wb["Psxview Output"]
          for col in xrange(1, 12):
 -            ws.cell("{0}{1}".format(get_column_letter(col), 1)).style = BoldStyle
 +            ws["{0}{1}".format(get_column_letter(col), 1)].style = BoldStyle



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801211240.w0LCebr0013645>