Ticket #506 (defect)
Opened 3 years ago
Last modified 2 years ago
unrepr should support negative numbers
Status: closed (fixed)
| Reported by: | dangoor+cherrypy@gmail.com | Assigned to: | mikerobi |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | CherryPy code | Keywords: | |
| Cc: |
Currently, putting a negative number in a config file fails:
foo = -6
This (and +6) can be fixed by adding this to unrepr:
def build_UnarySub(self, o):
return -self.build_Const(o.getChildren()[0])
def build_UnaryAdd(self, o):
return self.build_Const(o.getChildren()[0])
(this comes from Max Ischenko... I'm just dropping the tickets in the right place).
Change History
05/30/06 11:59:14: Modified by mikerobi
- owner changed from rdelon to mikerobi.
- status changed from new to assigned.
09/02/06 02:59:05: Modified by fumanchu
- status changed from assigned to closed.
- resolution set to fixed.
12/11/06 00:31:31: Modified by fumanchu
2.x fix in [1513].


Fixed in [1312].