The code for add-apt-repository is in ppa.py from the software-properties package not the apt package.
The code for add-apt-repository is in ppa.py from the software-properties package not the apt package.