Newer
Older
Digital_Repository / Old / pysocks / utils.py
nstanger on 12 Nov 2005 706 bytes - Second attempt at importing!
#! /usr/bin/python

#------------------------------------------------------------------------
# name:
# author: 		J Skinner
# Date Written:	
# Purpose:
# Notes
#------------------------------------------------------------------------




#------------------------   IMPORTS  ------------------------------------

import string
import os
import sys



#------------------------    CODE    ------------------------------------

def get_file_as_string(fname):
    return '\n'.join(open(fname).readlines())

def flatten(list):
    return [_i[0] for _i in list]
#------------------------------------------------------------------------

#------------------------     END    ------------------------------------