Commit fcf0f0f7 authored by Adam P. Goucher's avatar Adam P. Goucher

Call with no arguments should copy the pattern

parent b327f1d7
Pipeline #55528067 passed with stages
in 7 minutes and 59 seconds
#ifndef LIFELIB_VERSION /*
__version__=[x.replace('"', '') for x in '''
*/
#define LIFELIB_VERSION "ll2.2.8"
#define LIFELIB_VERSION "ll2.2.9"
// '''.split() if ('ll' in x)][0][2:]
#endif
......@@ -342,11 +342,11 @@ class Pattern(object):
def __call__(self, *args):
temp = self
if (len(args) > 3):
raise TypeError("Usage: pattern(8, -5) or pattern('rccw') or pattern('rot90', 7, 3)")
temp = self.__copy__()
if ((len(args) % 2) == 1):
temp = temp.transform(args[0])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment