pymarc 5.2.1__tar.gz → 5.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. {pymarc-5.2.1/pymarc.egg-info → pymarc-5.2.2}/PKG-INFO +1 -1
  2. {pymarc-5.2.1 → pymarc-5.2.2}/pymarc/record.py +1 -1
  3. {pymarc-5.2.1 → pymarc-5.2.2/pymarc.egg-info}/PKG-INFO +1 -1
  4. {pymarc-5.2.1 → pymarc-5.2.2}/setup.py +1 -1
  5. {pymarc-5.2.1 → pymarc-5.2.2}/test/test_record.py +2 -0
  6. {pymarc-5.2.1 → pymarc-5.2.2}/CONTRIBUTING.md +0 -0
  7. {pymarc-5.2.1 → pymarc-5.2.2}/LICENSE +0 -0
  8. {pymarc-5.2.1 → pymarc-5.2.2}/MANIFEST.in +0 -0
  9. {pymarc-5.2.1 → pymarc-5.2.2}/README.md +0 -0
  10. {pymarc-5.2.1 → pymarc-5.2.2}/README_pt_Br.md +0 -0
  11. {pymarc-5.2.1 → pymarc-5.2.2}/docs/source/conf.py +0 -0
  12. {pymarc-5.2.1 → pymarc-5.2.2}/docs/source/index.rst +0 -0
  13. {pymarc-5.2.1 → pymarc-5.2.2}/pymarc/__init__.py +0 -0
  14. {pymarc-5.2.1 → pymarc-5.2.2}/pymarc/constants.py +0 -0
  15. {pymarc-5.2.1 → pymarc-5.2.2}/pymarc/exceptions.py +0 -0
  16. {pymarc-5.2.1 → pymarc-5.2.2}/pymarc/field.py +0 -0
  17. {pymarc-5.2.1 → pymarc-5.2.2}/pymarc/leader.py +0 -0
  18. {pymarc-5.2.1 → pymarc-5.2.2}/pymarc/marc8.py +0 -0
  19. {pymarc-5.2.1 → pymarc-5.2.2}/pymarc/marc8_mapping.py +0 -0
  20. {pymarc-5.2.1 → pymarc-5.2.2}/pymarc/marcjson.py +0 -0
  21. {pymarc-5.2.1 → pymarc-5.2.2}/pymarc/marcxml.py +0 -0
  22. {pymarc-5.2.1 → pymarc-5.2.2}/pymarc/py.typed +0 -0
  23. {pymarc-5.2.1 → pymarc-5.2.2}/pymarc/reader.py +0 -0
  24. {pymarc-5.2.1 → pymarc-5.2.2}/pymarc/writer.py +0 -0
  25. {pymarc-5.2.1 → pymarc-5.2.2}/pymarc.egg-info/SOURCES.txt +0 -0
  26. {pymarc-5.2.1 → pymarc-5.2.2}/pymarc.egg-info/dependency_links.txt +0 -0
  27. {pymarc-5.2.1 → pymarc-5.2.2}/pymarc.egg-info/top_level.txt +0 -0
  28. {pymarc-5.2.1 → pymarc-5.2.2}/requirements.dev.txt +0 -0
  29. {pymarc-5.2.1 → pymarc-5.2.2}/setup.cfg +0 -0
  30. {pymarc-5.2.1 → pymarc-5.2.2}/test/1251.dat +0 -0
  31. {pymarc-5.2.1 → pymarc-5.2.2}/test/__init__.py +0 -0
  32. {pymarc-5.2.1 → pymarc-5.2.2}/test/alphatag.dat +0 -0
  33. {pymarc-5.2.1 → pymarc-5.2.2}/test/bad_eacc_encoding.dat +0 -0
  34. {pymarc-5.2.1 → pymarc-5.2.2}/test/bad_indicator.dat +0 -0
  35. {pymarc-5.2.1 → pymarc-5.2.2}/test/bad_marc8_escape.dat +0 -0
  36. {pymarc-5.2.1 → pymarc-5.2.2}/test/bad_records.mrc +0 -0
  37. {pymarc-5.2.1 → pymarc-5.2.2}/test/bad_subfield_code.dat +0 -0
  38. {pymarc-5.2.1 → pymarc-5.2.2}/test/bad_tag.xml +0 -0
  39. {pymarc-5.2.1 → pymarc-5.2.2}/test/batch.json +0 -0
  40. {pymarc-5.2.1 → pymarc-5.2.2}/test/batch.xml +0 -0
  41. {pymarc-5.2.1 → pymarc-5.2.2}/test/diacritic.dat +0 -0
  42. {pymarc-5.2.1 → pymarc-5.2.2}/test/marc.dat +0 -0
  43. {pymarc-5.2.1 → pymarc-5.2.2}/test/marc8-to-unicode.dat +0 -0
  44. {pymarc-5.2.1 → pymarc-5.2.2}/test/marc8.dat +0 -0
  45. {pymarc-5.2.1 → pymarc-5.2.2}/test/multi_isbn.dat +0 -0
  46. {pymarc-5.2.1 → pymarc-5.2.2}/test/one.dat +0 -0
  47. {pymarc-5.2.1 → pymarc-5.2.2}/test/one.json +0 -0
  48. {pymarc-5.2.1 → pymarc-5.2.2}/test/regression45.dat +0 -0
  49. {pymarc-5.2.1 → pymarc-5.2.2}/test/test.dat +0 -0
  50. {pymarc-5.2.1 → pymarc-5.2.2}/test/test.json +0 -0
  51. {pymarc-5.2.1 → pymarc-5.2.2}/test/test_encode.py +0 -0
  52. {pymarc-5.2.1 → pymarc-5.2.2}/test/test_field.py +0 -0
  53. {pymarc-5.2.1 → pymarc-5.2.2}/test/test_json.py +0 -0
  54. {pymarc-5.2.1 → pymarc-5.2.2}/test/test_leader.py +0 -0
  55. {pymarc-5.2.1 → pymarc-5.2.2}/test/test_marc8.py +0 -0
  56. {pymarc-5.2.1 → pymarc-5.2.2}/test/test_marc8.txt +0 -0
  57. {pymarc-5.2.1 → pymarc-5.2.2}/test/test_ordered_fields.py +0 -0
  58. {pymarc-5.2.1 → pymarc-5.2.2}/test/test_reader.py +0 -0
  59. {pymarc-5.2.1 → pymarc-5.2.2}/test/test_utf8.py +0 -0
  60. {pymarc-5.2.1 → pymarc-5.2.2}/test/test_utf8.txt +0 -0
  61. {pymarc-5.2.1 → pymarc-5.2.2}/test/test_writer.py +0 -0
  62. {pymarc-5.2.1 → pymarc-5.2.2}/test/test_xml.py +0 -0
  63. {pymarc-5.2.1 → pymarc-5.2.2}/test/testunimarc.dat +0 -0
  64. {pymarc-5.2.1 → pymarc-5.2.2}/test/utf8.xml +0 -0
  65. {pymarc-5.2.1 → pymarc-5.2.2}/test/utf8_errors.dat +0 -0
  66. {pymarc-5.2.1 → pymarc-5.2.2}/test/utf8_invalid.mrc +0 -0
  67. {pymarc-5.2.1 → pymarc-5.2.2}/test/utf8_with_leader_flag.dat +0 -0
  68. {pymarc-5.2.1 → pymarc-5.2.2}/test/utf8_without_leader_flag.dat +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pymarc
3
- Version: 5.2.1
3
+ Version: 5.2.2
4
4
  Summary: Read, write and modify MARC bibliographic data
5
5
  Home-page: http://gitlab.com/pymarc/pymarc
6
6
  Author: Ed Summers
@@ -105,7 +105,7 @@ class Record:
105
105
  encoding=file_encoding,
106
106
  )
107
107
  elif force_utf8:
108
- self.leader = self.leader[0:9] + "a" + self.leader[10:]
108
+ self.leader = Leader(self.leader[0:9] + "a" + self.leader[10:])
109
109
 
110
110
  def __str__(self) -> str:
111
111
  """Will return a prettified version of the record in MARCMaker format.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pymarc
3
- Version: 5.2.1
3
+ Version: 5.2.2
4
4
  Summary: Read, write and modify MARC bibliographic data
5
5
  Home-page: http://gitlab.com/pymarc/pymarc
6
6
  Author: Ed Summers
@@ -8,7 +8,7 @@
8
8
 
9
9
  from setuptools import setup
10
10
 
11
- version = "5.2.1"
11
+ version = "5.2.2"
12
12
 
13
13
  classifiers = """
14
14
  Intended Audience :: Education
@@ -14,6 +14,7 @@ from pymarc.exceptions import (
14
14
  from pymarc.field import Field, Subfield, Indicators
15
15
  from pymarc.reader import MARCReader
16
16
  from pymarc.record import Record
17
+ from pymarc.leader import Leader
17
18
 
18
19
 
19
20
  class RecordTest(unittest.TestCase):
@@ -724,6 +725,7 @@ class RecordTest(unittest.TestCase):
724
725
  subfields=[Subfield(code="a", value="The pragmatic programmer")],
725
726
  )
726
727
  )
728
+ self.assertTrue(isinstance(record.leader, Leader))
727
729
  transmission_format = record.as_marc()
728
730
  transmission_format_leader = transmission_format[0:24]
729
731
  self.assertEqual(transmission_format_leader, b"00067 a2200037 4500")
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes