Your ROOT_URL in app.ini is https://git.hpc.odu.edu/ but you are visiting https://git.wahab.hpc.odu.edu/wirawan0/wpylib/commit/4c9b5ce9f7575be1dcc1e9d499fc2793f6dd2e31?style=unified&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
26 additions and
3 deletions
file/.cvsignore
file/file_utils.py
text_tools.py
timer.py
@ -0,0 +1,2 @@
*.pyc
*.pyo
@ -1,5 +1,5 @@
#!/usr/bin/python
# $Id: file_utils.py,v 1.1 2010-09-27 19:47:1 9 wirawan Exp $
# $Id: file_utils.py,v 1.2 2010-09-27 19:54:2 9 wirawan Exp $
#
# pyqmc.utils.file_utils module
# File-manipulation utilities
@ -11,6 +11,14 @@
# They are not necessarily suitable for general-purpose uses; evaluate
# your needs and see if they can them as well.
#
# 20090601: Created as pyqmc.utils.file_utils .
# 20100927: Moved to wpylib.file.file_utils .
#
"""
Common file - manipulation utilities .
This module is part of wpylib project .
"""
import bz2
import glob
@ -1,4 +1,4 @@
# $Id: text_tools.py,v 1.4 2010-05-28 18:46:53 wirawan Exp $
# $Id: text_tools.py,v 1.5 2010-09-27 19:54:26 wirawan Exp $
#
# wpylib.text_tools
# Created: 20091204
@ -105,9 +105,12 @@ def str_expand(template, params, maxiter=100):
def str_grep ( S , strs ) :
""" Returns a list of strings wherein the substring S is found. """
return [ s for s in strs if s . find ( S ) > = 0 ]
def str_igrep ( S , strs ) :
""" Returns a list of the indices of the strings wherein the substring S
is found . """
return [ i for ( s , i ) in zip ( strs , xrange ( len ( strs ) ) ) if s . find ( S ) > = 0 ]
@ -1,4 +1,4 @@
# $Id: timer.py,v 1.1 2010-09-27 19:41:15 wirawan Exp $
# $Id: timer.py,v 1.2 2010-09-27 19:54:26 wirawan Exp $
#
# timer.py
# Simple timer and possibly other timing-related routine
@ -6,6 +6,16 @@
# Wirawan Purwanto
# Created: 20081022
#
# 20081022: Created as pyqmc.utils.timer .
# 20100927: Moved to wpylib.timer .
#
"""
Simple timer utility .
This module is part of wpylib project .
"""
import time
class timer :