Login | Register
My pages Projects Community openCollabNet

Discussions > dev > typo in CVS? > Reply to message

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

Reply to message

2020-03-13: This site is going to be decommissioned and shut down very soon. Please copy and archive any data you wish to keep ASAP

* = Required fields
* Subject
* Body
Send reply to
Author (directly in email)
Please type the letters in the image above.

Original message

Author Arthur Clune <ajc22@york.ac.uk>
Full name Arthur Clune <ajc22@york.ac.uk>
Date 2003-12-17 06:44:08 PST
Message Thinking it was about time I got with the plan and looked at the 1.5
series, I got the latest
out of CVS:

$ cvs -d :pserver:anoncvs@cvs​.tigris.org:/cvs checkout current

The make failed with the following error:

python -c "import py_compile; py_compile.compile('​postgres.py')"
  File "postgres.py", line 87
    (parentchannel_id, arch, osrelease = self.cursor.fetchone()
SyntaxError: invalid syntax

I assume that that line should be

    (parentchannel_id, arch, osrelease) = self.cursor.fetchone()

Diff if anyone is bothered:

--- src/db/postgres/postgres.py_o 2003-12-17 14:39:34.000000000 +0000
+++ src/db/postgres/postgres.py 2003-12-17 14:39:39.000000000 +0000
@@ -84,7 +84,7 @@
                                    from CHANNEL
                                    where label = %s''',
- (parentchannel_id, arch, osrelease = self.cursor.fetchone()
+ (parentchannel_id, arch, osrelease) = self.cursor.fetchone()
             parentchannel_id = None
             arch = channel['arch']

Arthur Clune, Systems Security Advisor, The Computing Service
University of York, UK, YO10 5DD. +44 (0) 1904 433129
PGP signing key A0389A4B. Full key http://www.clune.org/pubkey.txt

To unsubscribe, e-mail: dev-unsubscribe@curr​ent.tigris.org
For additional commands, e-mail: dev-help at current dot tigris dot org