Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/allpy/rev/e83572fff43f
Дата изменения: Unknown
Дата индексирования: Tue Oct 2 01:11:54 2012
Кодировка:
allpy: e83572fff43f

allpy

changeset 746:e83572fff43f

Roll-back a bug introduces by dirty hand-merge in [723]. (closes #74) (see #76) Boris! Please do not do dirty hand merges! If you did hg fetch here, this bug would not appear! Please, be extremely careful when you do hand merges and double-check your changes. Do a diff with each parent and see what you remove related to the parent! If someone else's code is involved in the merge (which is almost always the case), do that diff twice just to make sure you have not missed anything!
author Daniil Alexeyevsky <dendik@kodomo.fbb.msu.ru>
date Mon, 11 Jul 2011 14:29:54 +0400
parents 3c604227dfec
children 52ce523138d5
files allpy/base.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/allpy/base.py	Mon Jul 11 13:55:53 2011 +0400
     1.2 +++ b/allpy/base.py	Mon Jul 11 14:29:54 2011 +0400
     1.3 @@ -68,7 +68,9 @@
     1.4      @classmethod
     1.5      def from_code1(cls, code1):
     1.6          """Create new monomer from 1-letter code."""
     1.7 -        return cls.by_code1[code1.upper()]()
     1.8 +        monomer = cls.by_code1[code1.upper()]()
     1.9 +        monomer.input_code1 = code1
    1.10 +        return monomer
    1.11  
    1.12      @classmethod
    1.13      def from_code3(cls, code3):