diff options
| author | Ben Pfaff <blp@nicira.com> | 2011-08-23 10:47:53 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2011-08-24 12:06:53 -0700 |
| commit | 1f9dd59cf178b0765727f6908e135f48c766e213 (patch) | |
| tree | fed7203b626a517bec9975db371df64fe251c8f9 /python/ovs/stream.py | |
| parent | 90d9dcfc12cbfa7ac103ea6d0e38797c10598d57 (diff) | |
| download | openvswitch-1f9dd59cf178b0765727f6908e135f48c766e213.tar.gz | |
ovs.stream: Use %d in place of %ld since the two are equivalent in Python.
Reported-by: Reid Price <reid@nicira.com>
Diffstat (limited to 'python/ovs/stream.py')
| -rw-r--r-- | python/ovs/stream.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/ovs/stream.py b/python/ovs/stream.py index 16e383a0c..20cd7fe24 100644 --- a/python/ovs/stream.py +++ b/python/ovs/stream.py @@ -1,4 +1,4 @@ -# Copyright (c) 2010 Nicira Networks +# Copyright (c) 2010, 2011 Nicira Networks # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -75,8 +75,8 @@ class Stream(object): return errno.EAFNOSUPPORT, None Stream.n_unix_sockets += 1 - bind_path = "/tmp/stream-unix.%ld.%d" % (os.getpid(), - Stream.n_unix_sockets) + bind_path = "/tmp/stream-unix.%d.%d" % (os.getpid(), + Stream.n_unix_sockets) connect_path = name[5:] error, sock = ovs.socket_util.make_unix_socket(socket.SOCK_STREAM, True, bind_path, |
