diff options
| author | Ben Pfaff <blp@nicira.com> | 2011-08-22 16:54:28 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2011-08-24 11:57:42 -0700 |
| commit | f2d8ad13e1819a6553b30ba33a28abf7603f5b9b (patch) | |
| tree | 0e453f66a2c5fd24868842f1e23a83c25b2bb034 /python/ovs/db/data.py | |
| parent | b33a04c63adc29096fe50c08c7b8781398f885c7 (diff) | |
| download | openvswitch-f2d8ad13e1819a6553b30ba33a28abf7603f5b9b.tar.gz | |
python: Avoid lots of \" in quoted strings by using '' as outermost quotes.
Suggested-by: Reid Price <reid@nicira.com>
Diffstat (limited to 'python/ovs/db/data.py')
| -rw-r--r-- | python/ovs/db/data.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/ovs/db/data.py b/python/ovs/db/data.py index 2d0193278..531d5338e 100644 --- a/python/ovs/db/data.py +++ b/python/ovs/db/data.py @@ -143,12 +143,12 @@ class Atom(object): length = len(s) if length < base.min_length: raise ConstraintViolation( - "\"%s\" length %d is less than minimum allowed length %d" + '"%s" length %d is less than minimum allowed length %d' % (s, length, base.min_length)) elif length > base.max_length: raise ConstraintViolation( - "\"%s\" length %d is greater than maximum allowed " - "length %d" % (s, length, base.max_length)) + '"%s" length %d is greater than maximum allowed ' + 'length %d' % (s, length, base.max_length)) def to_json(self): if self.type == ovs.db.types.UuidType: |
