[Python-modules-commits] r21861 - in packages/prettytable/trunk/debian (2 files)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Mon May 21 18:01:13 UTC 2012


    Date: Monday, May 21, 2012 @ 18:01:11
  Author: morph
Revision: 21861

* debian/prettytable-example.py
  - update for new 0.6 release

Modified:
  packages/prettytable/trunk/debian/changelog
  packages/prettytable/trunk/debian/prettytable-example.py

Modified: packages/prettytable/trunk/debian/changelog
===================================================================
--- packages/prettytable/trunk/debian/changelog	2012-05-21 12:09:27 UTC (rev 21860)
+++ packages/prettytable/trunk/debian/changelog	2012-05-21 18:01:11 UTC (rev 21861)
@@ -1,3 +1,10 @@
+prettytable (0.6-2) UNRELEASED; urgency=low
+
+  * debian/prettytable-example.py
+    - update for new 0.6 release
+
+ -- Sandro Tosi <morph at debian.org>  Mon, 21 May 2012 20:00:41 +0200
+
 prettytable (0.6-1) unstable; urgency=low
 
   * New upstream release

Modified: packages/prettytable/trunk/debian/prettytable-example.py
===================================================================
--- packages/prettytable/trunk/debian/prettytable-example.py	2012-05-21 12:09:27 UTC (rev 21860)
+++ packages/prettytable/trunk/debian/prettytable-example.py	2012-05-21 18:01:11 UTC (rev 21861)
@@ -6,9 +6,13 @@
 def main():
 
     x = PrettyTable(["City name", "Area", "Population", "Annual Rainfall"])
-    x.set_field_align("City name", "l") # Left align city names
-    x.add_row(["Adelaide",1295, 1158259, 600.5])
-    x.add_row(["Brisbane",5905, 1857594, 1146.4])
+    x.sortby = "Population"
+    x.reversesort = True
+    x.int_format["Area"] = "04"
+    x.float_format = "6.1"
+    x.align["City name"] = "l" # Left align city names
+    x.add_row(["Adelaide", 1295, 1158259, 600.5])
+    x.add_row(["Brisbane", 5905, 1857594, 1146.4])
     x.add_row(["Darwin", 112, 120900, 1714.7])
     x.add_row(["Hobart", 1357, 205556, 619.5])
     x.add_row(["Sydney", 2058, 4336374, 1214.8])




More information about the Python-modules-commits mailing list