Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 349408 Details for
Bug 471488
[TRACKER] Packages using deprecated imports of PIL modules
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
find_pil_deprecated_imports
find_pil_deprecated_imports (text/x-python), 1.96 KB, created by
Arfrever Frehtes Taifersar Arahesis
on 2013-05-27 22:11:29 UTC
(
hide
)
Description:
find_pil_deprecated_imports
Filename:
MIME Type:
Creator:
Arfrever Frehtes Taifersar Arahesis
Created:
2013-05-27 22:11:29 UTC
Size:
1.96 KB
patch
obsolete
>#!/usr/bin/python3 > >import os >import sys > >modules = [ > "ArgImagePlugin", > "BdfFontFile", > "BmpImagePlugin", > "BufrStubImagePlugin", > "ContainerIO", > "CurImagePlugin", > "DcxImagePlugin", > "EpsImagePlugin", > "ExifTags", > "FitsStubImagePlugin", > "FliImagePlugin", > "FontFile", > "FpxImagePlugin", > "GbrImagePlugin", > "GdImageFile", > "GifImagePlugin", > "GimpGradientFile", > "GimpPaletteFile", > "GribStubImagePlugin", > "Hdf5StubImagePlugin", > "IcnsImagePlugin", > "IcoImagePlugin", > "ImImagePlugin", > "Image", > "ImageChops", > "ImageCms", > "ImageColor", > "ImageDraw", > "ImageDraw2", > "ImageEnhance", > "ImageFile", > "ImageFileIO", > "ImageFilter", > "ImageFont", > "ImageGL", > "ImageGrab", > "ImageMath", > "ImageMode", > "ImageOps", > "ImagePalette", > "ImagePath", > "ImageQt", > "ImageSequence", > "ImageShow", > "ImageStat", > "ImageTk", > "ImageTransform", > "ImageWin", > "ImtImagePlugin", > "IptcImagePlugin", > "JpegImagePlugin", > "McIdasImagePlugin", > "MicImagePlugin", > "MpegImagePlugin", > "MspImagePlugin", > "OleFileIO", > "PSDraw", > "PaletteFile", > "PalmImagePlugin", > "PcdImagePlugin", > "PcfFontFile", > "PcxImagePlugin", > "PdfImagePlugin", > "PixarImagePlugin", > "PngImagePlugin", > "PpmImagePlugin", > "PsdImagePlugin", > "SgiImagePlugin", > "SpiderImagePlugin", > "SunImagePlugin", > "TarIO", > "TgaImagePlugin", > "TiffImagePlugin", > "TiffTags", > "WalImageFile", > "WmfImagePlugin", > "XVThumbImagePlugin", > "XbmImagePlugin", > "XpmImagePlugin" >] > >modules_pattern = "(" + "|".join(modules) + ")" >command = ["grep", "--color=always", "-Er", "((^|;)[[:space:]]*(import[[:space:]]*([[:space:]][[:space:]A-Za-z0-9,._]*,)?[[:space:]]*" + modules_pattern + "($|[[:space:]#,])|from[[:space:]]+" + modules_pattern + "[[:space:]]+import[[:space:]])|__import__\([\"']" + modules_pattern + "[\"']\))"] > >if len(sys.argv) < 2: > print("Usage: %s FILES_OR_DIRECTORIES" % os.path.basename(sys.argv[0]), file=sys.stderr) > sys.exit(1) > >os.execvp("grep", command + sys.argv)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 471488
: 349408