[Python-modules-commits] r20701 - in packages/pexpect/trunk/debian/patches (1 file)
adejong at users.alioth.debian.org
adejong at users.alioth.debian.org
Fri Mar 9 10:22:45 UTC 2012
Date: Friday, March 9, 2012 @ 10:22:43
Author: adejong
Revision: 20701
Refresh patch (trailing spaces were accidentally trimmed).
Modified:
packages/pexpect/trunk/debian/patches/20_fix_chess_example.patch
Modified: packages/pexpect/trunk/debian/patches/20_fix_chess_example.patch
===================================================================
--- packages/pexpect/trunk/debian/patches/20_fix_chess_example.patch 2012-03-09 09:53:11 UTC (rev 20700)
+++ packages/pexpect/trunk/debian/patches/20_fix_chess_example.patch 2012-03-09 10:22:43 UTC (rev 20701)
@@ -20,52 +20,52 @@
- print 'do_move' move
+ print 'do_move', move
return move
-
+
def get_first_computer_move (self):
--- a/examples/fix_cvs_files.py
+++ b/examples/fix_cvs_files.py
@@ -24,8 +24,8 @@
-
+
def is_binary (filename):
-
+
- """Assume that any file with a character where the 8th bit is set is
- binary. """
+ """Assume that any file with a character where the 8th bit is set is
+ binary. """
-
+
fin = open(filename, 'rb')
wholething = fin.read()
@@ -37,9 +37,9 @@
-
+
def is_kb_sticky (filename):
-
+
- """This checks if 'cvs status' reports '-kb' for Sticky options. If the
- Sticky Option status is '-ks' then this returns 1. If the status is
- 'Unknown' then it returns 1. Otherwise 0 is returned. """
+ """This checks if 'cvs status' reports '-kb' for Sticky options. If the
+ Sticky Option status is '-ks' then this returns 1. If the status is
+ 'Unknown' then it returns 1. Otherwise 0 is returned. """
-
+
try:
s = pexpect.spawn ('cvs status %s' % filename)
@@ -59,7 +59,7 @@
-
+
def cvs_admin_kb (filename):
-
+
- """This uses 'cvs admin' to set the '-kb' sticky option. """
+ """This uses 'cvs admin' to set the '-kb' sticky option. """
-
+
s = pexpect.run ('cvs admin -kb %s' % filename)
# There is a timing issue. If I run 'cvs admin' too quickly
@@ -68,8 +68,8 @@
-
+
def walk_and_clean_cvs_binaries (arg, dirname, names):
-
+
- """This contains the logic for processing files. This is the os.path.walk
- callback. This skips dirnames that end in CVS. """
+ """This contains the logic for processing files. This is the os.path.walk
+ callback. This skips dirnames that end in CVS. """
-
+
if len(dirname)>3 and dirname[-3:]=='CVS':
return
--- a/examples/ssh_tunnel.py
More information about the Python-modules-commits
mailing list