Browse Source

Change function.func_doc to function.__doc__

In python3 func_doc was renamed to __doc__, see [0].

[0]: https://docs.python.org/3.0/whatsnew/3.0.html#operators-and-special-methods
Closes-Bug: #1844660

Change-Id: I8585f8429acb7359e1f372a5e4f378ca5ce6b540
tags/16.0.0.0b1
elajkat 10 months ago
committed by Lajos Katona
parent
commit
924141c663
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      networking_odl/journal/periodic_task.py

+ 1
- 1
networking_odl/journal/periodic_task.py View File

@@ -55,7 +55,7 @@ class PeriodicTask(object):
def _execute_op(self, operation, context):
op_details = operation.__name__
if operation.__doc__:
op_details += " (%s)" % operation.func_doc
op_details += " (%s)" % operation.__doc__

try:
LOG.info("Starting %s phase of periodic task %s.",


Loading…
Cancel
Save