diff --git a/paddle/fluid/API.spec b/paddle/fluid/API.spec index 5e0756e539003ba1c9223778301c6a60376808e8..38acd6e15f1b66b769904f4679e819864248f83a 100644 --- a/paddle/fluid/API.spec +++ b/paddle/fluid/API.spec @@ -416,7 +416,6 @@ paddle.reader.buffered ArgSpec(args=['reader', 'size'], varargs=None, keywords=N paddle.reader.compose ArgSpec(args=[], varargs='readers', keywords='kwargs', defaults=None) paddle.reader.chain ArgSpec(args=[], varargs='readers', keywords=None, defaults=None) paddle.reader.shuffle ArgSpec(args=['reader', 'buf_size'], varargs=None, keywords=None, defaults=None) -paddle.reader.ComposeNotAligned.__init__ paddle.reader.firstn ArgSpec(args=['reader', 'n'], varargs=None, keywords=None, defaults=None) paddle.reader.xmap_readers ArgSpec(args=['mapper', 'reader', 'process_num', 'buffer_size', 'order'], varargs=None, keywords=None, defaults=(False,)) paddle.reader.PipeReader.__init__ ArgSpec(args=['self', 'command', 'bufsize', 'file_type'], varargs=None, keywords=None, defaults=(8192, 'plain')) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 32de51afb2e05400d6cff85ce02e228c8dd9b808..24e488afba4e5cfe0ed6019a0e2f4175fb08c3e0 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -459,7 +459,8 @@ function assert_api_not_changed() { # Use sed to make python2 and python3 sepc keeps the same sed -i 's/arg0: str/arg0: unicode/g' new.spec sed -i "s/\(.*Transpiler.*\).__init__ ArgSpec(args=\['self'].*/\1.__init__ /g" new.spec - sed -i 's/\(.*ComposeNotAligned.*\).__init__ ArgSpec(args=.*/\1.__init__ /g' new.spec + # ComposeNotAligned has significant different between py2 and py3 + sed -i '/.*ComposeNotAligned.*/d' new.spec fi python ${PADDLE_ROOT}/tools/diff_api.py ${PADDLE_ROOT}/paddle/fluid/API.spec new.spec deactivate