diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/aikif/cls_log.py b/aikif/cls_log.py index <HASH>..<HASH> 100644 --- a/aikif/cls_log.py +++ b/aikif/cls_log.py @@ -7,7 +7,7 @@ import time import getpass import socket import random -import aikif.config as cfg +import config as cfg def TEST(): """ simple test function """
fixed import to get local config, not installed config for development
py
diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index <HASH>..<HASH> 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -344,7 +344,7 @@ class PartialMessageConverter(Converter[discord.PartialMessage]): if not match: raise M...
[commands] Fix message converter not inferring channel when missing
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='py-moneyed', packages=find_packages('src'), package_dir={'': 'src'}, - version='0.4', + version='0.4.1', description='Provides Currency and Money classes for use in your Pyt...
Modified to use the rst version of README, and incremented version/revision number.
py
diff --git a/symbols/boundlist.py b/symbols/boundlist.py index <HASH>..<HASH> 100644 --- a/symbols/boundlist.py +++ b/symbols/boundlist.py @@ -10,12 +10,16 @@ # ---------------------------------------------------------------------- from symbol_ import Symbol +from bound import SymbolBOUND class SymbolBOUNDLIST...
- Fixed a bug in __str__ - Added bounds assert-checking
py
diff --git a/src/python/grpcio/grpc/_channel.py b/src/python/grpcio/grpc/_channel.py index <HASH>..<HASH> 100644 --- a/src/python/grpcio/grpc/_channel.py +++ b/src/python/grpcio/grpc/_channel.py @@ -1123,10 +1123,12 @@ class _ChannelCallState(object): self.managed_calls = 0 def __del__(self): - i...
Suppress exceptions from the __del__ of channel object
py
diff --git a/ipyrad/assemble/refmap.py b/ipyrad/assemble/refmap.py index <HASH>..<HASH> 100644 --- a/ipyrad/assemble/refmap.py +++ b/ipyrad/assemble/refmap.py @@ -710,8 +710,12 @@ def bam_region_to_fasta(data, sample, chrom, region_start, region_end): ## Create temporary files for R1, R2 and merged, which we...
If /dev/shm exists, use it for finalizing mapped reads.
py
diff --git a/textrank.py b/textrank.py index <HASH>..<HASH> 100755 --- a/textrank.py +++ b/textrank.py @@ -531,7 +531,12 @@ def normalize_key_phrases (path, ranks): sum_ranks = sum([rl.rank for rl in single_lex.values()]) for rl in sorted(single_lex.values(), key=lambda rl: rl.rank, reverse=True): - yield rl...
guarding against a divide-by-zero, though we have not identified the edge case yet
py
diff --git a/salt/states/zk_concurrency.py b/salt/states/zk_concurrency.py index <HASH>..<HASH> 100644 --- a/salt/states/zk_concurrency.py +++ b/salt/states/zk_concurrency.py @@ -56,7 +56,7 @@ try: # TODO: use the kazoo one, waiting for pull req: # https://github.com/python-zk/kazoo/pull/206 - class Sema...
tell the loader not to load the Semaphore class
py
diff --git a/openquake/engine/bin/openquake_cli.py b/openquake/engine/bin/openquake_cli.py index <HASH>..<HASH> 100755 --- a/openquake/engine/bin/openquake_cli.py +++ b/openquake/engine/bin/openquake_cli.py @@ -451,7 +451,13 @@ def main(): if args.what_if_I_upgrade: conn = models.getcursor('admin').conn...
Added a bit more of explanation Former-commit-id: b8cd0d<I>d<I>ef4bb<I>df7b<I>d<I>c<I>
py
diff --git a/setuptools/svn_utils.py b/setuptools/svn_utils.py index <HASH>..<HASH> 100644 --- a/setuptools/svn_utils.py +++ b/setuptools/svn_utils.py @@ -91,9 +91,12 @@ def determine_console_encoding(): encoding = None #olders pythons defaulted to this + is_osx = sys.platform == "darwin" ...
forgot to add in the mac default.
py
diff --git a/law/sandbox/base.py b/law/sandbox/base.py index <HASH>..<HASH> 100644 --- a/law/sandbox/base.py +++ b/law/sandbox/base.py @@ -286,6 +286,8 @@ class SandboxTask(Task): def __getattribute__(self, attr, proxy=True): if proxy: + if attr == "deps" and self.sandboxed: + ...
Fix deps of sandboxed tasks.
py
diff --git a/myfitnesspal/client.py b/myfitnesspal/client.py index <HASH>..<HASH> 100644 --- a/myfitnesspal/client.py +++ b/myfitnesspal/client.py @@ -341,7 +341,7 @@ class Client(MFPBase): def _get_notes(self, document): notes_header = document.xpath("//p[@class='note']")[0] header_text = [notes...
need to concatenate a list not a map in py3
py
diff --git a/vcs_repo_mgr/__init__.py b/vcs_repo_mgr/__init__.py index <HASH>..<HASH> 100644 --- a/vcs_repo_mgr/__init__.py +++ b/vcs_repo_mgr/__init__.py @@ -1263,7 +1263,7 @@ class Repository(PropertyManager): timer = Timer() revision = revision or self.default_revision logger.info("Exporti...
Replace `mkdir --parents` with `mkdir -p` Mac OS doesn't accept --parents
py
diff --git a/tools/interop_matrix/client_matrix.py b/tools/interop_matrix/client_matrix.py index <HASH>..<HASH> 100644 --- a/tools/interop_matrix/client_matrix.py +++ b/tools/interop_matrix/client_matrix.py @@ -280,7 +280,7 @@ LANG_RELEASE_MATRIX = { ('v1.42.1', ReleaseInfo()), ('v1.43.2', Rel...
Bump to Java <I> in the interop client matrix (#<I>)
py
diff --git a/salt/modules/chocolatey.py b/salt/modules/chocolatey.py index <HASH>..<HASH> 100644 --- a/salt/modules/chocolatey.py +++ b/salt/modules/chocolatey.py @@ -919,7 +919,8 @@ def version(name, check_remote=False, source=None, pre_versions=False): salt "*" chocolatey.version <package name> check_remote=...
Chocolatey - Added lowering local packages for unifing both local and remote names to lowercase for comparison.
py
diff --git a/tests/test_expectation_decorators.py b/tests/test_expectation_decorators.py index <HASH>..<HASH> 100644 --- a/tests/test_expectation_decorators.py +++ b/tests/test_expectation_decorators.py @@ -54,7 +54,6 @@ class TestExpectationDecorators(unittest.TestCase): # Catch exceptions and validate resu...
Update test for catch_exceptions to ensure exception_info present only if exception is thrown.
py
diff --git a/source/awesome_tool/mvc/controllers/state_overview.py b/source/awesome_tool/mvc/controllers/state_overview.py index <HASH>..<HASH> 100644 --- a/source/awesome_tool/mvc/controllers/state_overview.py +++ b/source/awesome_tool/mvc/controllers/state_overview.py @@ -97,6 +97,9 @@ class StateOverviewController(E...
Partially revert last commit Undo deletion of method "rename" in state overview controller
py
diff --git a/tornado/ioloop.py b/tornado/ioloop.py index <HASH>..<HASH> 100644 --- a/tornado/ioloop.py +++ b/tornado/ioloop.py @@ -119,10 +119,12 @@ class IOLoop(Configurable): .. testoutput:: :hide: - Do not attempt to construct an `IOLoop` directly; this is deprecated since - Tornado 6.2. Instead...
ioloop: Update docs for IOLoop constructor The constructor is not completely deprecated; the make_current=False mode is still usable. Fixes #<I>
py
diff --git a/machina/apps/feeds/feeds.py b/machina/apps/feeds/feeds.py index <HASH>..<HASH> 100644 --- a/machina/apps/feeds/feeds.py +++ b/machina/apps/feeds/feeds.py @@ -43,7 +43,7 @@ class LastTopicsFeed(Feed): Forum.objects.all(), request.user) def items(self): - return Topic.objects.f...
Topics feed updated to not embed non-approved topics
py
diff --git a/xclim/indices/_multivariate.py b/xclim/indices/_multivariate.py index <HASH>..<HASH> 100644 --- a/xclim/indices/_multivariate.py +++ b/xclim/indices/_multivariate.py @@ -751,8 +751,8 @@ def high_precip_low_temp( freq : str Resampling frequency. - Return - ------ + Returns + ------...
Update xclim/indices/_multivariate.py
py
diff --git a/shap/utils/_maskers.py b/shap/utils/_maskers.py index <HASH>..<HASH> 100644 --- a/shap/utils/_maskers.py +++ b/shap/utils/_maskers.py @@ -3,7 +3,7 @@ from ..utils import safe_isinstance def invariants(masker, *args): invariants = None - if isinstance(masker, "shap.maskers.FixedComposite"): + ...
Modified isinstance to safe_isinstance in _maskers.py utility
py
diff --git a/sciunit/unit_test/doc_tests.py b/sciunit/unit_test/doc_tests.py index <HASH>..<HASH> 100644 --- a/sciunit/unit_test/doc_tests.py +++ b/sciunit/unit_test/doc_tests.py @@ -24,5 +24,5 @@ class DocumentationTestCase(NotebookTools, unittest.TestCase): def test_chapter5(self): self.do_notebook("cha...
Drop test ch. 6 since sympy is not in travis-ci
py
diff --git a/mingus/core/keys.py b/mingus/core/keys.py index <HASH>..<HASH> 100644 --- a/mingus/core/keys.py +++ b/mingus/core/keys.py @@ -155,3 +155,5 @@ class Key(object): symbol = '' self.name = '{0} {1}{2}'.format(self.key[0].upper(), symbol, self.mode) + self.signature = get_key_sign...
Adding signature attribute to Key class.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -71,7 +71,7 @@ extra_linker_args = { 'windows': [], 'linux': [], 'cygwin': [], - 'darwin': ['-framework', 'OpenGL', '-Wno-deprecated'], + 'darwin': [], 'android': [], }
darwin: don't link in GL (moved to glcontext)
py
diff --git a/pew/pew.py b/pew/pew.py index <HASH>..<HASH> 100644 --- a/pew/pew.py +++ b/pew/pew.py @@ -639,7 +639,7 @@ def first_run_setup(): , 'zsh': '~/.zshrc' , 'fish': '~/.config/fish/config.fish'}[shell]) with rcpath.open('r+') as rcfile: - ...
allow source command indentation in shell rc Improve the source_cmd check to also validate indented source command like: # pew - python env wrapper if type -q pew source (pew shell_config) end
py
diff --git a/tests/data/tokenizers/word_splitter_test.py b/tests/data/tokenizers/word_splitter_test.py index <HASH>..<HASH> 100644 --- a/tests/data/tokenizers/word_splitter_test.py +++ b/tests/data/tokenizers/word_splitter_test.py @@ -105,8 +105,8 @@ class TestSpacyWordSplitter(AllenNlpTestCase): def test_tokeni...
remove would've from test fixture (#<I>)
py
diff --git a/dallinger/command_line.py b/dallinger/command_line.py index <HASH>..<HASH> 100755 --- a/dallinger/command_line.py +++ b/dallinger/command_line.py @@ -292,9 +292,12 @@ def debug(verbose): for line in iter(p.stdout.readline, ''): if verbose: sys.stdout.write(line) - if re.ma...
Pass web<I> errors to terminal when not in verbose mode
py
diff --git a/modeltranslation/tests/settings.py b/modeltranslation/tests/settings.py index <HASH>..<HASH> 100644 --- a/modeltranslation/tests/settings.py +++ b/modeltranslation/tests/settings.py @@ -39,5 +39,3 @@ SITE_ID = 1 LANGUAGES = (('de', 'Deutsch'), ('en', 'English')) DEFAULT_LANGUAGE = 'de' - -M...
Removed deprecated MODELTRANSLATION_TRANSLATION_REGISTRY setting from test settings.
py
diff --git a/docs/en/conf.py b/docs/en/conf.py index <HASH>..<HASH> 100644 --- a/docs/en/conf.py +++ b/docs/en/conf.py @@ -11,7 +11,7 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys, os +import sys, os, datetime # If extensions (or modules to d...
Replacing the hardcoded year with a function call
py
diff --git a/i3situation/plugins/cmus.py b/i3situation/plugins/cmus.py index <HASH>..<HASH> 100644 --- a/i3situation/plugins/cmus.py +++ b/i3situation/plugins/cmus.py @@ -1,4 +1,4 @@ -from subprocess import check_output +import subprocess import datetime from i3situation.plugins._plugin import Plugin @@ -49,7 +49,1...
Added a message for when cmus isn't active. I have also noticed a bug that means items don't appear on the bar in the order in which they were defined in the config file. I know how to fix it and will write a fix later.
py
diff --git a/spyder/plugins/ipythonconsole/widgets/client.py b/spyder/plugins/ipythonconsole/widgets/client.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/ipythonconsole/widgets/client.py +++ b/spyder/plugins/ipythonconsole/widgets/client.py @@ -552,6 +552,12 @@ class ClientWidget(QWidget, SaveHistoryMixin): ...
IPython console: Stop autorestart mechanism before restarting the kernel - This avoids a freeze in the console when the kernel is restarted manually and then it crashes running code. - The problem was generated by Qt because the restart process runs in a thread now and it cannot stop the QTimer needed by QtKernelResta...
py
diff --git a/captainhook/checkers/utils.py b/captainhook/checkers/utils.py index <HASH>..<HASH> 100644 --- a/captainhook/checkers/utils.py +++ b/captainhook/checkers/utils.py @@ -7,6 +7,7 @@ except ImportError: # python 3 import configparser +import os.path from subprocess import Popen, PIPE @@ -51,14 ...
Allow for missing tox.ini file.
py
diff --git a/tests/test_ec2/test_elastic_block_store.py b/tests/test_ec2/test_elastic_block_store.py index <HASH>..<HASH> 100644 --- a/tests/test_ec2/test_elastic_block_store.py +++ b/tests/test_ec2/test_elastic_block_store.py @@ -76,3 +76,19 @@ def test_create_snapshot(): # Deleting something that was already d...
First, we make it crash #<I>
py
diff --git a/alot/helper.py b/alot/helper.py index <HASH>..<HASH> 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -17,8 +17,6 @@ from twisted.internet.defer import Deferred import StringIO import logging -from settings import config -from settings import settings def safely_get(clb, E, on_error=''): @@ -39...
remove references to settings from helper thos should not depend on user settings
py
diff --git a/test/unit/test_service_models.py b/test/unit/test_service_models.py index <HASH>..<HASH> 100644 --- a/test/unit/test_service_models.py +++ b/test/unit/test_service_models.py @@ -237,7 +237,7 @@ class DNSBLTest( **kwargs ...
Rename test_lookup_does_not_handle_unknown_code_error The method is being renamed to test_lookup_for_unknown_code.
py
diff --git a/spinoff/actor/node.py b/spinoff/actor/node.py index <HASH>..<HASH> 100644 --- a/spinoff/actor/node.py +++ b/spinoff/actor/node.py @@ -70,8 +70,9 @@ class Node(object): loaded = pickler.load() except Exception as e: err("failed to parse message from %r (%s)" % (sender_nid,...
Fixed a bug in the previous fix
py
diff --git a/tests/core_test.py b/tests/core_test.py index <HASH>..<HASH> 100755 --- a/tests/core_test.py +++ b/tests/core_test.py @@ -222,6 +222,11 @@ MIGRATIONS_DIR = os.getenv("MIGRATIONS_DIR") or "." db_migrate = Migrations(self.__config) exists = db_migrate.check_if_version_exists("20090214115100...
Bug checking if a version existed (was considering that versions like '<I>' existed because only the begginning of the file was being matched).
py
diff --git a/tests/strided_interval_test_cases.py b/tests/strided_interval_test_cases.py index <HASH>..<HASH> 100644 --- a/tests/strided_interval_test_cases.py +++ b/tests/strided_interval_test_cases.py @@ -158,8 +158,10 @@ def multiplication_tests(): op1 = StridedInterval(bits=4, stride=1, lower_bound=3, upper_bo...
fixed wrong test case and error in stride calculation
py
diff --git a/test/test_client.py b/test/test_client.py index <HASH>..<HASH> 100644 --- a/test/test_client.py +++ b/test/test_client.py @@ -84,7 +84,8 @@ class ClientTestIndexing(unittest.TestCase): os.remove('temp_file.json') except: pass - + + @unittest.skip("D...
removed streaming tests since travis can't put files on my server
py
diff --git a/test/test_onnx.py b/test/test_onnx.py index <HASH>..<HASH> 100644 --- a/test/test_onnx.py +++ b/test/test_onnx.py @@ -397,10 +397,6 @@ class TestONNXExporter: # This test also compares both paste_masks_in_image and _onnx_paste_masks_in_image # (since jit_trace witll call _onnx_paste_masks_in_imag...
Do not disable profiling executor in ONNX tests (#<I>) [ghstack-poisoned]
py
diff --git a/master/buildbot/process/buildstep.py b/master/buildbot/process/buildstep.py index <HASH>..<HASH> 100644 --- a/master/buildbot/process/buildstep.py +++ b/master/buildbot/process/buildstep.py @@ -253,6 +253,7 @@ class BuildStep(results.ResultComputingConfigMixin, 'descriptionSuffix', 'doSte...
Let workdir be renderable Not sure why this is broken for shell commands. This seems to resolve the bug
py
diff --git a/indra/sources/sparser/processor.py b/indra/sources/sparser/processor.py index <HASH>..<HASH> 100644 --- a/indra/sources/sparser/processor.py +++ b/indra/sources/sparser/processor.py @@ -161,6 +161,12 @@ def _fix_agent(agent): hgnc_id = hgnc_client.get_hgnc_id(gene_name) if hgnc_id...
Use text as agent name when gene name not available for protein
py
diff --git a/pandas/tests/api/test_types.py b/pandas/tests/api/test_types.py index <HASH>..<HASH> 100644 --- a/pandas/tests/api/test_types.py +++ b/pandas/tests/api/test_types.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -import pytest - from pandas.api import types from pandas.util import testing as tm @@ -35,19 +3...
CLN: Remove dead code in api/test_types.py (#<I>) Follow-up to gh-<I>.
py
diff --git a/papyrus/__init__.py b/papyrus/__init__.py index <HASH>..<HASH> 100644 --- a/papyrus/__init__.py +++ b/papyrus/__init__.py @@ -84,4 +84,4 @@ def includeme(config): """ The function to pass to ``config.include``. Requires the ``pyramid_handlers`` module. """ config.add_directive('add_papyrus_h...
correct typo in the add_directive call
py
diff --git a/salt/config.py b/salt/config.py index <HASH>..<HASH> 100644 --- a/salt/config.py +++ b/salt/config.py @@ -247,7 +247,7 @@ DEFAULT_MINION_OPTS = { DEFAULT_MASTER_OPTS = { 'interface': '0.0.0.0', 'publish_port': '4505', - 'pub_hwm': 1, + 'pub_hwm': 1000, 'auth_mode': 1, 'user': 'ro...
Set pub_hwm to <I> by default, Fix #<I>
py
diff --git a/fireplace/cards/blackrock/collectible.py b/fireplace/cards/blackrock/collectible.py index <HASH>..<HASH> 100644 --- a/fireplace/cards/blackrock/collectible.py +++ b/fireplace/cards/blackrock/collectible.py @@ -134,6 +134,19 @@ class BRM_029: play = HOLDING_DRAGON & Destroy(TARGET) +# Nefarian +class ...
Implement Nefarian and Tail Swipe
py
diff --git a/tests/bench_bgra2rgb.py b/tests/bench_bgra2rgb.py index <HASH>..<HASH> 100644 --- a/tests/bench_bgra2rgb.py +++ b/tests/bench_bgra2rgb.py @@ -6,23 +6,23 @@ Maximum screenshots in 1 second by computing BGRA raw values to RGB. GNU/Linux - pil_frombytes_rgb 51 pil_frombytes 139 mss_rgb ...
tests: sort tests functions in bench_bgra2rgb.py
py
diff --git a/parsl/tests/test_monitoring/test_basic.py b/parsl/tests/test_monitoring/test_basic.py index <HASH>..<HASH> 100644 --- a/parsl/tests/test_monitoring/test_basic.py +++ b/parsl/tests/test_monitoring/test_basic.py @@ -2,12 +2,19 @@ import logging import os import parsl import pytest +import time logger =...
Test that monitoring resource rows are recorded for a long task (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -175,8 +175,7 @@ def get_cmdclass(): def script_entry_points(): import pkgutil - import pyemma.cli as cli - path = os.path.dirname(cli.__file__) + path = os.path.join('pyemma', 'cli') names = [name for _,...
[setup] do not import pyemma, but pass path to cli directly.
py
diff --git a/unfriendly/__init__.py b/unfriendly/__init__.py index <HASH>..<HASH> 100644 --- a/unfriendly/__init__.py +++ b/unfriendly/__init__.py @@ -1,2 +1,2 @@ -VERSION = (0, 1) +VERSION = (0, 2, 'dev') __version__ = '.'.join([str(x) for x in VERSION])
Bumped version -> <I>.dev
py
diff --git a/test_merge_dict.py b/test_merge_dict.py index <HASH>..<HASH> 100644 --- a/test_merge_dict.py +++ b/test_merge_dict.py @@ -16,7 +16,7 @@ def test_simple_overlapping(): "hi": "world", "world": "hei" } - default = {"world", "hi"} + default = {"world": "hi"} merged = merge(use...
fix bugs in test and support python 3
py
diff --git a/kademlia/protocol.py b/kademlia/protocol.py index <HASH>..<HASH> 100644 --- a/kademlia/protocol.py +++ b/kademlia/protocol.py @@ -108,9 +108,9 @@ class KademliaProtocol(RPCProtocol): """ if result[0]: self.log.info("got response from %s, adding to router" % node) - ...
Bug fix in protocol.handleCallResponse isNewNode was called after the contact was added to the routing table meaning it would always return false and the key/values would never be transferred.
py
diff --git a/sportsref/utils.py b/sportsref/utils.py index <HASH>..<HASH> 100644 --- a/sportsref/utils.py +++ b/sportsref/utils.py @@ -158,7 +158,7 @@ def parse_table(table, flatten=True): # (number%) -> float(number * 0.01) def convert_pct(val): - m = re.search(r'([-\d]+)\%', str(val)) + m = ...
added decimal to convert_pct to fix percentage conversions in utils.parse_table
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,4 +4,5 @@ import setuptools setuptools.setup( setup_requires=['pbr'], pbr=True, + package_data={"aioresponses": ["py.typed"]} )
add `py.typed` file to package data in setup.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -5,15 +5,13 @@ from distutils.core import setup import os import elpy -if os.path.exists("README.txt"): - exit("README.txt exists, will be clobbered.") - -with open("README.txt", "w") as f: - f.write(elpy.__doc__) +i...
setup.py: Don't error if README.txt exists, just don't write it. This caused a problem on pypi installation. This also meant we had to upload <I> there instead of <I>.
py
diff --git a/wordfreq_builder/wordfreq_builder/ninja.py b/wordfreq_builder/wordfreq_builder/ninja.py index <HASH>..<HASH> 100644 --- a/wordfreq_builder/wordfreq_builder/ninja.py +++ b/wordfreq_builder/wordfreq_builder/ninja.py @@ -45,6 +45,10 @@ def make_ninja_deps(rules_filename, out=sys.stdout): print(rulesf...
build.ninja knows about its own dependencies
py
diff --git a/fusesoc/section/__init__.py b/fusesoc/section/__init__.py index <HASH>..<HASH> 100644 --- a/fusesoc/section/__init__.py +++ b/fusesoc/section/__init__.py @@ -16,6 +16,9 @@ class Section(object): self.strings += [s] setattr(self, s, "") + def export(self): + return self.export_...
class Section: Add export function This defines an export function that can be used by all subclasses by defining all exportable files as a list called self.export_files. Note: This is yet another patch that does not add multiple inheritance
py
diff --git a/marrow/mongo/core/field/base.py b/marrow/mongo/core/field/base.py index <HASH>..<HASH> 100644 --- a/marrow/mongo/core/field/base.py +++ b/marrow/mongo/core/field/base.py @@ -117,6 +117,10 @@ class Period(Date): minutes = Attribute(default=None) seconds = Attribute(default=None) + @property + def del...
Add easy method to retrieve the relevant timedelta for a Period.
py
diff --git a/onecodex/api.py b/onecodex/api.py index <HASH>..<HASH> 100644 --- a/onecodex/api.py +++ b/onecodex/api.py @@ -262,8 +262,28 @@ class ExtendedPotionClient(PotionClient): # pulled it from the API and serialized it. now, we unserialize it and put it where it # needs to be. base_sche...
Warn when schema URLs mismatch rather than raising cryptic error This is only an error that developers will see, but it's come up so many times, it's time for a change!
py
diff --git a/fire.py b/fire.py index <HASH>..<HASH> 100755 --- a/fire.py +++ b/fire.py @@ -104,7 +104,7 @@ def to_datetime(data): """ # set a default date and time in case none of the expected # xml properties was here - my_date_time = time.time() + my_date_time = datetime.datetime.now().timetuple(...
fix : TypeError: argument must be 9-item sequence, not float when there is no date in the feeds, now set a correct default one in 9-tuple
py
diff --git a/linkcheck/configuration/__init__.py b/linkcheck/configuration/__init__.py index <HASH>..<HASH> 100644 --- a/linkcheck/configuration/__init__.py +++ b/linkcheck/configuration/__init__.py @@ -168,10 +168,14 @@ class Configuration (dict): logging.config.fileConfig(filename) if handler is...
Add thread name to log output when threads are enabled.
py
diff --git a/src/app/actions/lookups/quant.py b/src/app/actions/lookups/quant.py index <HASH>..<HASH> 100644 --- a/src/app/actions/lookups/quant.py +++ b/src/app/actions/lookups/quant.py @@ -85,6 +85,7 @@ def align_quants_psms(quantdb, rt_tolerance, mz_tolerance, mz_toltype): for spec_id, fn_id, charge, mz, rt in ...
Discovered MS1 bug while working on multi-set fixtures, the feat_map fetched depending on the window and the mz of the scan, so set window max explicitly to -1 when getting scans from a new file
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ print("""----------------------------------- # Set version requirements according to what version of Python we're running networkx_version = '' matplotlib_version = '>=2.1.1' -if sys.version_info[0:2] < (3, 5...
it's lt, not lte
py
diff --git a/src/qinfer/dialogs.py b/src/qinfer/dialogs.py index <HASH>..<HASH> 100644 --- a/src/qinfer/dialogs.py +++ b/src/qinfer/dialogs.py @@ -105,11 +105,23 @@ class ProgressDialog(object): eta=False ): + # Make environment variables including the path to qinfer. + env...
Added fix to pass PYTHONPATH to subprocess.
py
diff --git a/salt/states/file.py b/salt/states/file.py index <HASH>..<HASH> 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -807,9 +807,8 @@ def directory(name, else: return _error( ret, 'No directory to create {0} in'.format(name)) - if not os.path.is...
Fix error where file.directory did not report changes
py
diff --git a/isso/views/comment.py b/isso/views/comment.py index <HASH>..<HASH> 100644 --- a/isso/views/comment.py +++ b/isso/views/comment.py @@ -59,7 +59,7 @@ def create(app, environ, request, uri): if "email" in data: hash = data["email"] else: - hash = utils.salt(utils.anonymize(request.re...
REMOTE_ADDR is not unicode
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,12 +4,12 @@ setup( packages = ['missingno'], # this must be the same as the name above install_requires=['numpy', 'matplotlib', 'scipy', 'seaborn'], py_modules=['missingno'], - version = '0.3.0', + version = '0.3...
Uploading to PyPi blows.
py
diff --git a/pyiso.py b/pyiso.py index <HASH>..<HASH> 100644 --- a/pyiso.py +++ b/pyiso.py @@ -4107,13 +4107,14 @@ class PyIso(object): dotdot.new_dotdot(svd.root_directory_record(), svd.sequence_number(), False, svd.logical_block_size()) svd.root_directory_record().add_child(dotdot, svd, Fals...
Calculate the SVD size to add based on the logical block size.
py
diff --git a/SoftLayer/CLI/core.py b/SoftLayer/CLI/core.py index <HASH>..<HASH> 100644 --- a/SoftLayer/CLI/core.py +++ b/SoftLayer/CLI/core.py @@ -108,8 +108,7 @@ use: 'slcli setup'""", is_flag=True, required=False, help="Use fixtures instead of actually making API calls") -...
Adjusts slcli version text a bit
py
diff --git a/bashlex/subst.py b/bashlex/subst.py index <HASH>..<HASH> 100644 --- a/bashlex/subst.py +++ b/bashlex/subst.py @@ -252,7 +252,7 @@ def _expandwordinternal(tok, wordtoken, qheredocument, qdoublequotes, quoted, is sindex[0] = i istring += string[sindex[0]:i] - elif c...
dont bother checking for param if we only have 1 char
py
diff --git a/jarn/mkrelease/process.py b/jarn/mkrelease/process.py index <HASH>..<HASH> 100644 --- a/jarn/mkrelease/process.py +++ b/jarn/mkrelease/process.py @@ -5,10 +5,14 @@ import os from .tee import run from .exit import trace +catch_keyboard_interrupts = True + class Process(object): """Process relate...
Catch KeyboardInterrupts in Process.popen.
py
diff --git a/django_cereal/__init__.py b/django_cereal/__init__.py index <HASH>..<HASH> 100644 --- a/django_cereal/__init__.py +++ b/django_cereal/__init__.py @@ -11,7 +11,7 @@ version_info_t = namedtuple( 'version_info_t', ('major', 'minor', 'micro', 'releaselevel', 'serial'), ) -VERSION = version_info_t(0, 1,...
Bumped version to <I>
py
diff --git a/qa_tests/hazard/disagg/case_1/test.py b/qa_tests/hazard/disagg/case_1/test.py index <HASH>..<HASH> 100644 --- a/qa_tests/hazard/disagg/case_1/test.py +++ b/qa_tests/hazard/disagg/case_1/test.py @@ -71,7 +71,7 @@ class DisaggHazardCase1TestCase(qa_utils.BaseQATestCase): aaae(test_data.RLZ_1_POE_01_...
qa_tests/hazard/disagg/case_1/test: Fixed a comment typo
py
diff --git a/tests/integration/renderers/test_jinja.py b/tests/integration/renderers/test_jinja.py index <HASH>..<HASH> 100644 --- a/tests/integration/renderers/test_jinja.py +++ b/tests/integration/renderers/test_jinja.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import absolute_import, print_function,...
Drop Py2 and six on tests/integration/renderers/test_jinja.py
py
diff --git a/Lib/ufoProcessor/__init__.py b/Lib/ufoProcessor/__init__.py index <HASH>..<HASH> 100644 --- a/Lib/ufoProcessor/__init__.py +++ b/Lib/ufoProcessor/__init__.py @@ -608,8 +608,8 @@ class DesignSpaceProcessor(DesignSpaceDocument): anisotropic = True locHorizontal, locVertical = self.s...
Fill kerningGroupConversionRenameMaps dict with side1 and side2 If the dict is empty saving the instance goes boom when the masters are v3 and the instances are v2
py
diff --git a/ariba/assembly.py b/ariba/assembly.py index <HASH>..<HASH> 100644 --- a/ariba/assembly.py +++ b/ariba/assembly.py @@ -67,7 +67,7 @@ class Assembly: self.scaffolder_scaffolds = os.path.join(self.assembly_dir, 'scaffolds.fa') self.gapfill_dir = os.path.join(self.assembly_dir, 'Gapfill') ...
remove line for now, has syntax error
py
diff --git a/blockstack/lib/operations/register.py b/blockstack/lib/operations/register.py index <HASH>..<HASH> 100644 --- a/blockstack/lib/operations/register.py +++ b/blockstack/lib/operations/register.py @@ -1025,7 +1025,7 @@ def parse(bin_payload, block_height): 0 2 3 ...
docs: big-endian token representation
py
diff --git a/luminoso_api/auth.py b/luminoso_api/auth.py index <HASH>..<HASH> 100644 --- a/luminoso_api/auth.py +++ b/luminoso_api/auth.py @@ -147,6 +147,7 @@ class LuminosoAuth(object): def __call__(self, req): # Register the on_response hook req.register_hook('response', self.__on_response) + ...
For debugging, indicate whether or not the auth request is willing to retry
py
diff --git a/gofedlib/go/symbolsextractor/extractor.py b/gofedlib/go/symbolsextractor/extractor.py index <HASH>..<HASH> 100644 --- a/gofedlib/go/symbolsextractor/extractor.py +++ b/gofedlib/go/symbolsextractor/extractor.py @@ -68,6 +68,17 @@ class GoSymbolsExtractor(object): def _normalizePath(self, path): return ...
Filter out invalid paths from definition of individual packages
py
diff --git a/iktomi/unstable/db/library.py b/iktomi/unstable/db/library.py index <HASH>..<HASH> 100644 --- a/iktomi/unstable/db/library.py +++ b/iktomi/unstable/db/library.py @@ -1,3 +1,28 @@ +import sys + +def return_locals(func): + ''' + Wraps function, so it is executed and it's locals() are returned + ...
return_locas is included to iktomi
py
diff --git a/cms7/generator.py b/cms7/generator.py index <HASH>..<HASH> 100644 --- a/cms7/generator.py +++ b/cms7/generator.py @@ -1,9 +1,10 @@ from pathlib2 import PurePosixPath - import logging from jinja2 import Environment, ChoiceLoader, FileSystemLoader, ModuleLoader, StrictUndefined +from .error import CMS...
generator: return undefined for url lookup failure we can now look up the url for anything that's going to be deployed, so there's no reason to just pass through unknown names any more. we return a jinja undefined instead of just raising an exception for two reasons: it allows a template to do something like `if url_...
py
diff --git a/ps_mem.py b/ps_mem.py index <HASH>..<HASH> 100755 --- a/ps_mem.py +++ b/ps_mem.py @@ -455,8 +455,8 @@ def verify_environment(): raise if __name__ == '__main__': - verify_environment() split_args, pids_to_show, watch, only_total = parse_options() + verify_environment() if n...
don't require root access for --help
py
diff --git a/cohorts/load.py b/cohorts/load.py index <HASH>..<HASH> 100644 --- a/cohorts/load.py +++ b/cohorts/load.py @@ -1084,17 +1084,21 @@ class Cohort(Collection): return roc_curve_plot(df, plot_col, "benefit", bootstrap_samples, ax=ax) def plot_benefit(self, on, col=None, benefit_col="benefit", la...
Allow boolean_value_map to be passed in to plot_benefit
py
diff --git a/tests/testcases.py b/tests/testcases.py index <HASH>..<HASH> 100644 --- a/tests/testcases.py +++ b/tests/testcases.py @@ -14,7 +14,7 @@ from dusty.config import write_default_config, save_config_value, get_config, sa from dusty.compiler.spec_assembler import get_specs_repo from dusty.commands.repos impor...
This function got made public at some point
py
diff --git a/LiSE/util.py b/LiSE/util.py index <HASH>..<HASH> 100644 --- a/LiSE/util.py +++ b/LiSE/util.py @@ -150,14 +150,11 @@ def fillcache(engine, real, cache): (branch, tick) = engine.time if branch not in cache: cache[branch] = {} - for (k, v) in real.items(): + for k in real: if...
Speed up fire_time_travel_triggers by assuming that, if a key is already cached at the current branch and tick, the current value for it is cached.
py
diff --git a/examples/spectrum/compare.py b/examples/spectrum/compare.py index <HASH>..<HASH> 100644 --- a/examples/spectrum/compare.py +++ b/examples/spectrum/compare.py @@ -44,7 +44,7 @@ baddata = TimeSeries.fetch('L1:PSL-ISS_PDB_OUT_DQ', badtime, badtime+duration) goodasd = gooddata.asd(4, 2) badasd = baddata.asd(...
examples: minor edit to specrum/compare
py
diff --git a/lib/tower_cli/resources/group.py b/lib/tower_cli/resources/group.py index <HASH>..<HASH> 100644 --- a/lib/tower_cli/resources/group.py +++ b/lib/tower_cli/resources/group.py @@ -226,6 +226,20 @@ class Resource(models.Resource): isid = self._get_inventory_source_id(group) return isrc.updat...
Allow associate/disassociate on group to allow for child groups.
py
diff --git a/astropixie-widgets/astropixie_widgets/visual.py b/astropixie-widgets/astropixie_widgets/visual.py index <HASH>..<HASH> 100644 --- a/astropixie-widgets/astropixie_widgets/visual.py +++ b/astropixie-widgets/astropixie_widgets/visual.py @@ -628,7 +628,7 @@ WHERE p.clean = 1 and p.probPSF = 1 logg...
[EPO-<I>] Fix logic when setting `self.selection_ids`. modified: astropixie-widgets/astropixie_widgets/visual.py
py
diff --git a/silverberg/client.py b/silverberg/client.py index <HASH>..<HASH> 100644 --- a/silverberg/client.py +++ b/silverberg/client.py @@ -110,15 +110,9 @@ class CQLClient(object): d.addCallback(_vers) return d - def _unmarshal_result(self, schema, raw_rows, _unmarshallers=None): + def _un...
Just pass unmarshalling dictionary to private unmarshaller
py
diff --git a/limbo/plugins/youtube.py b/limbo/plugins/youtube.py index <HASH>..<HASH> 100644 --- a/limbo/plugins/youtube.py +++ b/limbo/plugins/youtube.py @@ -6,20 +6,16 @@ from urllib import quote import requests def youtube(searchterm): - searchterm = quote(searchterm) - url = "https://gdata.youtube.com/fee...
fix youtube search plugin google disabled the old youtube API, and the new one doesn't allow you to search without being registered, so let's screen scrape.
py
diff --git a/grequests.py b/grequests.py index <HASH>..<HASH> 100644 --- a/grequests.py +++ b/grequests.py @@ -117,10 +117,10 @@ def map(requests, stream=False, size=None, exception_handler=None): ret = [] for request in requests: - if hasattr(request, 'exception') and exception_handler: - ...
request.response is init'd to None, so the more appropriate test is the 'is not None' comparison.
py
diff --git a/path.py b/path.py index <HASH>..<HASH> 100644 --- a/path.py +++ b/path.py @@ -110,7 +110,7 @@ except ImportError: pass ########################## -__version__ = '5.1' +__version__ = '5.2' __all__ = ['path', 'CaseInsensitivePattern']
Bumped to <I> in preparation for next release.
py
diff --git a/sports_py/match.py b/sports_py/match.py index <HASH>..<HASH> 100644 --- a/sports_py/match.py +++ b/sports_py/match.py @@ -1,4 +1,5 @@ import json +from datetime import datetime class Match: @@ -11,7 +12,7 @@ class Match: self.home_score = score[0] self.away_score = score[1] ...
Convert Match.match_date to datetime object
py
diff --git a/hwrt/serve.py b/hwrt/serve.py index <HASH>..<HASH> 100755 --- a/hwrt/serve.py +++ b/hwrt/serve.py @@ -11,7 +11,6 @@ import sys import json import requests import logging -import csv # Python 2 / 3 compatibility from six.moves.urllib.request import urlopen @@ -186,8 +185,12 @@ def fix_writemath_answe...
serve.py: bugfix; make it easier to find bugs by passing the raw data id
py
diff --git a/gwpy/io/kerberos.py b/gwpy/io/kerberos.py index <HASH>..<HASH> 100644 --- a/gwpy/io/kerberos.py +++ b/gwpy/io/kerberos.py @@ -157,6 +157,8 @@ def parse_keytab(keytab): """ try: out = check_output(['klist', '-k', keytab], stderr=PIPE) + except OSError: + raise KerberosError("Fai...
io.kerberos: handle OSError with missing klist
py
diff --git a/src/saml2/entity.py b/src/saml2/entity.py index <HASH>..<HASH> 100644 --- a/src/saml2/entity.py +++ b/src/saml2/entity.py @@ -341,7 +341,7 @@ class Entity(HTTPBase): try: to_sign += [(class_name(msg), mid)] - except AttributeError: + except (AttributeError, TypeError):...
A recent change from append to addition made it possible to have yet another exception type.
py
diff --git a/release/nightly_tests/dataset/pipelined_training.py b/release/nightly_tests/dataset/pipelined_training.py index <HASH>..<HASH> 100644 --- a/release/nightly_tests/dataset/pipelined_training.py +++ b/release/nightly_tests/dataset/pipelined_training.py @@ -119,18 +119,17 @@ def train_main(args, splits): ...
[dataset][nightly-test] fix pipeline ingest test (#<I>)
py
diff --git a/integration_test.py b/integration_test.py index <HASH>..<HASH> 100755 --- a/integration_test.py +++ b/integration_test.py @@ -97,7 +97,7 @@ class IntegrationTest(unittest.TestCase): '13.1.1-16714', '13.2.2-17585', '13.3.1-18130', - #'13.4.0-18334', Fails repeatedly. + ...
<I>-<I> works fine for me. I suggest deleting the deb and allowing it to get downloaded again. maybe it was not downloaded correctly?
py
diff --git a/gwpy/tests/test_table.py b/gwpy/tests/test_table.py index <HASH>..<HASH> 100644 --- a/gwpy/tests/test_table.py +++ b/gwpy/tests/test_table.py @@ -524,14 +524,15 @@ class TestGravitySpyTable(TestTable): TABLE = GravitySpyTable def test_search(self): - import json from ssl import ...
Same tune different flow...perhaps a prettier more understandable flow
py
diff --git a/jax/lax/lax.py b/jax/lax/lax.py index <HASH>..<HASH> 100644 --- a/jax/lax/lax.py +++ b/jax/lax/lax.py @@ -1442,8 +1442,8 @@ ad.defjvp(cos_p, lambda g, x: neg(mul(g, sin(x)))) atan2_p = standard_binop([_float, _float], 'atan2') ad.defjvp(atan2_p, - lambda g, x, y: g * y / (square(x) + square(y)), - la...
Add brcast to deal with inconsistent shapes.
py