BOSTON (AP) _ Former Boston Inspectional Services Commissioner Anthony Pepicelli has been sentenced to two years in prison on a racketeering count that accused him of taking bribes from developers.

U.S. Judge A. David Mazzone, who handed down the sentence Friday, said cases arising from an investigation of the department show it ''was a thoroughly corrupt department under the former administration.''

Pepicelli, 49, pleaded guilty last month to the racketeering charge.

The ex-commissioner gave favorable treatment to the permit applications of developers who paid him, said Special Assistant U.S. Attorney Robert Cordy.

''I've never solicited anything from anyone in all the time I worked in the building department,'' Pepicelli said.

His attorney, Albert Cullen Jr., contended Pepicelli began accepting gifts and small amounts of cash at holidays from developers he had aided on projects.