subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1434089 - /subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py
Date Wed, 16 Jan 2013 18:25:50 GMT
Author: danielsh
Date: Wed Jan 16 18:25:50 2013
New Revision: 1434089

URL: http://svn.apache.org/viewvc?rev=1434089&view=rev
Log:
[in tools/server-side/svnpubsub]

Check the 'svn' commit object format number.

* svnpubsub/client.py
  (JSONRecordHandler.feed): Fix local variable names to match convention.

Modified:
    subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py

Modified: subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py?rev=1434089&r1=1434088&r2=1434089&view=diff
==============================================================================
--- subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py (original)
+++ subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py Wed Jan 16 18:25:50 2013
@@ -134,9 +134,9 @@ class JSONRecordHandler:
   def feed(self, record):
     obj = json.loads(record)
     if 'svnpubsub' in obj:
-      actual_format = obj['svnpubsub'].get('version')
-      expected_format = 1
-      if actual_format != expected_format:
+      actual_version = obj['svnpubsub'].get('version')
+      EXPECTED_VERSION = 1
+      if actual_version != EXPECTED_VERSION:
         raise SvnpubsubClientException("Unknown svnpubsub format: %r != %d"
                                        % (actual_format, expected_format))
       self.event_callback('version', obj['svnpubsub']['version'])



Mime
View raw message