Changeset - 24095abde696
[Not reviewed]
beta
0 5 0
Marcin Kuzminski - 14 years ago 2012-05-16 01:24:23
marcin@python-works.com
print statement cleanup
5 files changed with 2 insertions and 7 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/auth.py
Show inline comments
 
@@ -64,7 +64,7 @@ class PasswordGenerator(object):
 
        passwd_gen = PasswordGenerator()
 
        #print 8-letter password containing only big and small letters
 
            of alphabet
 
        print passwd_gen.gen_password(8, passwd_gen.ALPHABETS_BIG_SMALL)
 
        passwd_gen.gen_password(8, passwd_gen.ALPHABETS_BIG_SMALL)
 
    """
 
    ALPHABETS_NUM = r'''1234567890'''
 
    ALPHABETS_SMALL = r'''qwertyuiopasdfghjklzxcvbnm'''
rhodecode/lib/utils2.py
Show inline comments
 
@@ -215,7 +215,6 @@ def safe_str(unicode_, to_encoding=None)
 
    try:
 
        import chardet
 
        encoding = chardet.detect(unicode_)['encoding']
 
        print encoding
 
        if encoding is None:
 
            raise UnicodeEncodeError()
 

	
rhodecode/lib/vcs/backends/hg/changeset.py
Show inline comments
 
@@ -260,11 +260,9 @@ class MercurialChangeset(BaseChangeset):
 
        elif prefix.strip() == '':
 
            raise VCSError("Prefix cannot be empty")
 

	
 
        print stream.closed
 
        archival.archive(self.repository._repo, stream, self.raw_id,
 
                         kind, prefix=prefix, subrepos=subrepos)
 
        print stream.closed
 
        
 

	
 
        if stream.closed and hasattr(stream, 'name'):
 
            stream = open(stream.name, 'rb')
 
        elif hasattr(stream, 'mode') and 'r' not in stream.mode:
rhodecode/lib/vcs/utils/__init__.py
Show inline comments
 
@@ -90,7 +90,6 @@ def safe_str(unicode_, to_encoding=None)
 
    try:
 
        import chardet
 
        encoding = chardet.detect(unicode_)['encoding']
 
        print encoding
 
        if encoding is None:
 
            raise UnicodeEncodeError()
 

	
rhodecode/model/user.py
Show inline comments
 
@@ -531,7 +531,6 @@ class UserModel(BaseModel):
 

	
 
        for perm in user_repo_group_perms_from_users_groups:
 
            g_k = perm.UsersGroupRepoGroupToPerm.group.group_name
 
            print perm, g_k
 
            p = perm.Permission.permission_name
 
            cur_perm = user.permissions[GK][g_k]
 
            # overwrite permission only if it's greater than permission
0 comments (0 inline, 0 general)