"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "googlemock/scripts/generator/cpp/utils.py" between
googletest-release-1.10.0.tar.gz and googletest-release-1.11.0.tar.gz

About: GoogleTest is Google's (unit) testing and mocking framework for C++ tests.

utils.py  (googletest-release-1.10.0):utils.py  (googletest-release-1.11.0)
skipping to change at line 20 skipping to change at line 20
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
"""Generic utilities for C++ parsing.""" """Generic utilities for C++ parsing."""
__author__ = 'nnorwitz@google.com (Neal Norwitz)'
import sys import sys
# Set to True to see the start/end token indices. # Set to True to see the start/end token indices.
DEBUG = True DEBUG = True
def ReadFile(filename, print_error=True): def ReadFile(filename, print_error=True):
"""Returns the contents of a file.""" """Returns the contents of a file."""
try: try:
fp = open(filename) fp = open(filename)
try: try:
 End of changes. 1 change blocks. 
2 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)