Small fix of codestyle violations

Change-Id: Ib6046c83a1261421b930cd25e29e88f5169fbb61
Related-Bug: #1482643
This commit is contained in:
Maksym Strukov 2015-10-13 22:50:30 +03:00
parent 2b7ce18e79
commit d89cb76503
2 changed files with 6 additions and 4 deletions

View File

@ -17,7 +17,6 @@ import json
import time
import traceback
import yaml
import os.path
import os
import posixpath
import re

View File

@ -13,15 +13,18 @@
# under the License.
import yaml
import os.path
import os
import types
def copy_func(f, name=None):
'''return a function with same code, globals, defaults, closure, and
"""
:param f:
:param name:
:return: a function with same code, globals, defaults, closure, and
name (or provide a new name)
'''
"""
fn = types.FunctionType(f.__code__, f.__globals__, name or f.__name__,
f.__defaults__, f.__closure__)
# in case f was given attrs (note this dict is a shallow copy):