##// END OF EJS Templates
print statement cleanup
marcink -
r2278:24095abd beta
parent child Browse files
Show More
@@ -64,7 +64,7 b' class PasswordGenerator(object):'
64 passwd_gen = PasswordGenerator()
64 passwd_gen = PasswordGenerator()
65 #print 8-letter password containing only big and small letters
65 #print 8-letter password containing only big and small letters
66 of alphabet
66 of alphabet
67 print passwd_gen.gen_password(8, passwd_gen.ALPHABETS_BIG_SMALL)
67 passwd_gen.gen_password(8, passwd_gen.ALPHABETS_BIG_SMALL)
68 """
68 """
69 ALPHABETS_NUM = r'''1234567890'''
69 ALPHABETS_NUM = r'''1234567890'''
70 ALPHABETS_SMALL = r'''qwertyuiopasdfghjklzxcvbnm'''
70 ALPHABETS_SMALL = r'''qwertyuiopasdfghjklzxcvbnm'''
@@ -215,7 +215,6 b' def safe_str(unicode_, to_encoding=None)'
215 try:
215 try:
216 import chardet
216 import chardet
217 encoding = chardet.detect(unicode_)['encoding']
217 encoding = chardet.detect(unicode_)['encoding']
218 print encoding
219 if encoding is None:
218 if encoding is None:
220 raise UnicodeEncodeError()
219 raise UnicodeEncodeError()
221
220
@@ -260,11 +260,9 b' class MercurialChangeset(BaseChangeset):'
260 elif prefix.strip() == '':
260 elif prefix.strip() == '':
261 raise VCSError("Prefix cannot be empty")
261 raise VCSError("Prefix cannot be empty")
262
262
263 print stream.closed
264 archival.archive(self.repository._repo, stream, self.raw_id,
263 archival.archive(self.repository._repo, stream, self.raw_id,
265 kind, prefix=prefix, subrepos=subrepos)
264 kind, prefix=prefix, subrepos=subrepos)
266 print stream.closed
265
267
268 if stream.closed and hasattr(stream, 'name'):
266 if stream.closed and hasattr(stream, 'name'):
269 stream = open(stream.name, 'rb')
267 stream = open(stream.name, 'rb')
270 elif hasattr(stream, 'mode') and 'r' not in stream.mode:
268 elif hasattr(stream, 'mode') and 'r' not in stream.mode:
@@ -90,7 +90,6 b' def safe_str(unicode_, to_encoding=None)'
90 try:
90 try:
91 import chardet
91 import chardet
92 encoding = chardet.detect(unicode_)['encoding']
92 encoding = chardet.detect(unicode_)['encoding']
93 print encoding
94 if encoding is None:
93 if encoding is None:
95 raise UnicodeEncodeError()
94 raise UnicodeEncodeError()
96
95
@@ -531,7 +531,6 b' class UserModel(BaseModel):'
531
531
532 for perm in user_repo_group_perms_from_users_groups:
532 for perm in user_repo_group_perms_from_users_groups:
533 g_k = perm.UsersGroupRepoGroupToPerm.group.group_name
533 g_k = perm.UsersGroupRepoGroupToPerm.group.group_name
534 print perm, g_k
535 p = perm.Permission.permission_name
534 p = perm.Permission.permission_name
536 cur_perm = user.permissions[GK][g_k]
535 cur_perm = user.permissions[GK][g_k]
537 # overwrite permission only if it's greater than permission
536 # overwrite permission only if it's greater than permission
General Comments 0
You need to be logged in to leave comments. Login now