ALT Linux Bugzilla
– Attachment 1698 Details for
Bug 10374
/usr/lib/rpm/python.req.py breaks building on a malformed python file
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Crude fix
reqmem.patch (text/plain), 601 bytes, created by
Andrey V Khavryuchenko
on 2006-12-07 20:03:24 MSK
(
hide
)
Description:
Crude fix
Filename:
MIME Type:
Creator:
Andrey V Khavryuchenko
Created:
2006-12-07 20:03:24 MSK
Size:
601 bytes
patch
obsolete
>--- python.req.py.old 2006-12-07 18:38:09 +0200 >+++ python.req.py 2006-12-07 18:38:48 +0200 >@@ -118,10 +118,11 @@ > > for src in files : > if '.py' == os.path.splitext(os.path.basename(src))[1] : >- try : >+ try: > lis = parser.suite(open(src).read().replace("\r\n","\n")).tolist() > except SyntaxError,msg : > continue >+ except MemoryError, msg: continue # invalid python file > > for item in match(lis) : > if not item in prov[os.path.dirname(src)] :
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 10374
: 1698