Fixing last commit

pull/8/head
Starow 2014-08-08 17:08:41 +02:00
parent c9e1eaf182
commit 503c23ca3b
1 changed files with 5 additions and 4 deletions

View File

@ -30,10 +30,6 @@ from lib_refine import *
clean = lambda dirty: ''.join(filter(string.printable.__contains__, dirty)) clean = lambda dirty: ''.join(filter(string.printable.__contains__, dirty))
"""It filters out non-printable characters from the string it receives.""" """It filters out non-printable characters from the string it receives."""
configfile = './config.cfg'
cfg = ConfigParser.ConfigParser()
cfg.read(configfile)
class Paste(object): class Paste(object):
""" """
This class representing a Paste as an object. This class representing a Paste as an object.
@ -50,6 +46,11 @@ class Paste(object):
""" """
def __init__(self, p_path): def __init__(self, p_path):
configfile = './config.cfg'
cfg = ConfigParser.ConfigParser()
cfg.read(configfile)
self.p_path = p_path self.p_path = p_path
self.p_name = self.p_path.split('/')[-1] self.p_name = self.p_path.split('/')[-1]