[diffoscope] 05/05: rdata: Tidy some long lines
Chris Lamb
chris at chris-lamb.co.uk
Fri Apr 21 12:28:57 UTC 2017
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch experimental
in repository diffoscope.
commit 2132f2e5f12670eac247cd6c318e1fd786c6720f
Author: Chris Lamb <lamby at debian.org>
Date: Fri Apr 21 13:28:45 2017 +0100
rdata: Tidy some long lines
Gbp-Dch: ignore
---
diffoscope/comparators/rdata.py | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/diffoscope/comparators/rdata.py b/diffoscope/comparators/rdata.py
index bed6dc1..d64fe2b 100644
--- a/diffoscope/comparators/rdata.py
+++ b/diffoscope/comparators/rdata.py
@@ -59,13 +59,17 @@ def ensure_archive_rdx(f):
class RdsReader(Command):
@tool_required('Rscript')
def cmdline(self):
- return ['Rscript', '-e', 'args <- commandArgs(TRUE); readRDS(args[1])', self.path]
+ return [
+ 'Rscript', '-e', 'args <- commandArgs(TRUE); readRDS(args[1])',
+ self.path
+ ]
class RdsFile(File):
@staticmethod
def recognizes(file):
- if (check_rds_extension(file) or
- file.container and check_rds_extension(file.container.source)):
+ if check_rds_extension(file) or \
+ file.container and \
+ check_rds_extension(file.container.source):
with open(file.path, 'rb') as f:
return f.read(8) == HEADER
return False
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the Reproducible-commits
mailing list