[SQL-CVS] r1138 - SQLObject/trunk/sqlobject/manager
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2005-10-25 21:36:55
|
Author: test
Date: 2005-10-25 21:36:42 +0000 (Tue, 25 Oct 2005)
New Revision: 1138
Modified:
SQLObject/trunk/sqlobject/manager/command.py
Log:
Fix bug when sqlobject.txt doesn't exist
Modified: SQLObject/trunk/sqlobject/manager/command.py
===================================================================
--- SQLObject/trunk/sqlobject/manager/command.py 2005-10-25 19:44:00 UTC (rev 1137)
+++ SQLObject/trunk/sqlobject/manager/command.py 2005-10-25 21:36:42 UTC (rev 1138)
@@ -427,7 +427,7 @@
if not dist.has_metadata('sqlobject.txt'):
if warn_no_sqlobject:
print 'No sqlobject.txt in %s egg info' % egg_spec
- return {}
+ return None, {}
result = {}
for line in dist.get_metadata_lines('sqlobject.txt'):
line = line.strip()
@@ -436,7 +436,7 @@
name, value = line.split('=', 1)
name = name.strip().lower()
if name in result:
- print 'Warning: %s appears more than one in sqlobject.txt' % name
+ print 'Warning: %s appears more than once in sqlobject.txt' % name
result[name.strip().lower()] = value.strip()
return dist, result
|