After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 603641 - hexadecimal without 0x
hexadecimal without 0x
Status: RESOLVED FIXED
Product: billreminder
Classification: Other
Component: Logic
0.3.2
Other Linux
: Normal normal
: ---
Assigned To: billreminder-maint
billreminder-maint
Depends on:
Blocks:
 
 
Reported: 2009-12-02 19:41 UTC by Marco Villegas
Modified: 2009-12-02 22:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
avoid-syntax-error-on-hexadecimals.patch (723 bytes, patch)
2009-12-02 19:42 UTC, Marco Villegas
none Details | Review
Changed from binary literal to int to support python 2.5 and older. (416 bytes, patch)
2009-12-02 21:39 UTC, Luiz Armesto
accepted-commit_now Details | Review

Description Marco Villegas 2009-12-02 19:41:14 UTC
Hi,

I'm not sure if this is a bug.

the problem:

--
  • File "billreminder.py", line 39 in <module>
    from gui.maindialog import MainDialog as BillReminder
  • File "/home/marvil/sandbox/billreminder/src/gui/maindialog.py", line 20 in <module>
    from gui.widgets.timeline import Timeline, Bullet
  • File "/home/marvil/sandbox/billreminder/src/gui/widgets/timeline.py", line 16
    OVERDUE = 0b001
SyntaxError: invalid syntax
--

By adding a 0x before each of these lines no more problem.

PS: It's my 1st time trying this app, so sorry if I'm missing something
Comment 1 Marco Villegas 2009-12-02 19:42:29 UTC
Created attachment 148941 [details] [review]
avoid-syntax-error-on-hexadecimals.patch
Comment 2 Luiz Armesto 2009-12-02 21:39:23 UTC
Created attachment 148955 [details] [review]
Changed from binary literal to int to support python 2.5 and older.
Comment 3 Og Maciel 2009-12-02 21:56:24 UTC
This problem has been fixed in the development version (commit d59248f96bfaad789e732ddfa3b2ddf71626aabc). Basically the issue was caused by versions of python equal to or older than 2.5.

Thank you so much for filling this bug and run git pull -u to get latest. :)
Comment 4 Marco Villegas 2009-12-02 22:00:48 UTC
:-) great!