Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 199885 Details for
Bug 279845
app-misc/cycle ebuild submission
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix a syntax error.
cycle-0.3.1-syntax.patch (text/plain), 1.14 KB, created by
Livid
on 2009-08-02 05:52:38 UTC
(
hide
)
Description:
Fix a syntax error.
Filename:
MIME Type:
Creator:
Livid
Created:
2009-08-02 05:52:38 UTC
Size:
1.14 KB
patch
obsolete
>Index: cycle-0.3.1/dialogs.py >=================================================================== >--- cycle-0.3.1.orig/dialogs.py >+++ cycle-0.3.1/dialogs.py >@@ -182,19 +182,19 @@ def get_users(): > p, f_name=get_f_name() > if os.path.exists(p): > files=os.listdir(p) >- for f in files: >- fd=open(os.path.join(p, f),"rb") >- tmp=fd.read(len(magic_str)) >- if tmp == magic_str: >- tmp=fd.read(100) >- n=tmp.find("===") #find end string >- if n <> -1: >- users.append((cPickle.loads(tmp[:n]), f)) >- else: # old format, user_name=file_name >- users.append((f,f)) >-# if not users: >-# users=[(_('empty'),"empty")] >- users.sort() >+ for f in files: >+ fd=open(os.path.join(p, f),"rb") >+ tmp=fd.read(len(magic_str)) >+ if tmp == magic_str: >+ tmp=fd.read(100) >+ n=tmp.find("===") #find end string >+ if n <> -1: >+ users.append((cPickle.loads(tmp[:n]), f)) >+ else: # old format, user_name=file_name >+ users.append((f,f)) >+# if not users: >+# users=[(_('empty'),"empty")] >+ users.sort() > return users > > #---------------------------------------------------------------------------
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 279845
:
199777
|
199883
| 199885 |
199887
|
200849
|
200957
|
205182