Bug#902650: SyntaxError during package configuration with Python 3.7

2018-06-29 Thread Chris Lamb
tags 902650 + pending
thanks

Hi Andrey,

> Setting up diffoscope (97) ...
>   File "/usr/lib/python3/dist-packages/diffoscope/comparators/json.py", line 
> 41
> file.magic_file_type.startswith(x)
> ^
> SyntaxError: Generator expression must be parenthesized
> 
>   File "/usr/lib/python3/dist-packages/diffoscope/presenters/formats.py", line
> 112
> x['klass'].supports_visual_diffs for x in self.config.values(),
> ^
> SyntaxError: Generator expression must be parenthesized

Fixed in:

  
https://salsa.debian.org/reproducible-builds/diffoscope/commit/f77d2b1b466dfd37ffb091943d6c71e6836dee05

… pending upload.


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-



Processed: Re: Bug#902650: SyntaxError during package configuration with Python 3.7

2018-06-29 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> tags 902650 + pending
Bug #902650 [diffoscope] SyntaxError during package configuration with Python 
3.7
Added tag(s) pending.
> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
902650: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=902650
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#902650: SyntaxError during package configuration with Python 3.7

2018-06-29 Thread Andrey Rahmatullin
Package: diffoscope
Version: 97
Severity: grave

Setting up diffoscope (97) ...
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/json.py", line 41
file.magic_file_type.startswith(x)
^
SyntaxError: Generator expression must be parenthesized

  File "/usr/lib/python3/dist-packages/diffoscope/presenters/formats.py", line
112
x['klass'].supports_visual_diffs for x in self.config.values(),
^
SyntaxError: Generator expression must be parenthesized

dpkg: error processing package diffoscope (--configure):
 installed diffoscope package post-installation script subprocess returned
error exit status 1


>From the 3.7 release notes
(https://docs.python.org/3.7/whatsnew/3.7.html#changes-in-python-behavior):

"""
Due to an oversight, earlier Python versions erroneously accepted the following
syntax:

f(1 for x in [1],)

class C(1 for x in [1]):
pass
Python 3.7 now correctly raises a SyntaxError, as a generator expression always
needs to be directly inside a set of parentheses and cannot have a comma on
either side, and the duplication of the parentheses can be omitted only on
calls.
"""



-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.17.0-rc7-amd64 (SMP w/4 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE= 
(charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages diffoscope depends on:
ii  libpython3.6-stdlib3.6.6-1
ii  python33.6.6-1
ii  python3-distro 1.0.1-2
ii  python3-distutils  3.6.6-1
ii  python3-libarchive-c   2.1-3.1
ii  python3-magic  2:0.4.15-1
ii  python3-pkg-resources  39.2.0-1

Versions of packages diffoscope recommends:
pn  abootimg 
ii  acl  2.2.52-3+b1
pn  apktool  
pn  binutils-multiarch   
ii  bzip21.0.6-8.1
ii  caca-utils   0.99.beta19-2+b3
ii  colord   1.3.3-2
pn  db-util  
ii  default-jdk [java-sdk]   2:1.10-67
ii  default-jdk-headless 2:1.10-67
pn  device-tree-compiler 
pn  docx2txt 
ii  e2fsprogs1.44.2-1
pn  enjarify 
pn  fontforge-extras 
pn  fp-utils 
ii  genisoimage  9:1.1.11-3+b2
ii  gettext  0.19.8.1-6+b1
pn  ghc  
ii  ghostscript  9.22~dfsg-2.1
pn  giflib-tools 
pn  gnumeric 
ii  imagemagick  8:6.9.9.39+dfsg-1
ii  imagemagick-6.q16 [imagemagick]  8:6.9.9.39+dfsg-1
pn  jsbeautifier 
pn  libarchive-tools 
pn  llvm 
ii  mono-utils   4.6.2.7+dfsg-2
pn  odt2txt  
pn  oggvideotools
ii  openjdk-10-jdk [java-sdk]10.0.1+10-4
ii  openssh-client   1:7.7p1-2
pn  pgpdump  
ii  poppler-utils0.63.0-2
pn  procyon-decompiler   
pn  python3-argcomplete  
pn  python3-binwalk  
ii  python3-debian   0.1.32
pn  python3-defusedxml   
pn  python3-guestfs  
pn  python3-jsondiff 
pn  python3-progressbar  
pn  python3-pyxattr  
ii  python3-tlsh 3.4.4+20151206-1+b3
pn  r-base-core  
pn  sng  
ii  sqlite3  3.24.0-1
ii  squashfs-tools   1:4.3-6
ii  tcpdump  4.9.2-3
ii  unzip6.0-21
ii  vim-common   2:8.1.0089-1
pn  xmlutils 
ii  xxd  2:8.1.0089-1
ii  xz-utils 5.2.2-1.3

Versions of packages diffoscope suggests:
ii  libjs-jquery  3.2.1-1

-- debconf-show failed