diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/quickstart_deploy.py b/quickstart_deploy.py index <HASH>..<HASH> 100755 --- a/quickstart_deploy.py +++ b/quickstart_deploy.py @@ -4,6 +4,7 @@ __metaclass__ = type from argparse import ArgumentParser import logging +import sys from deploy_stack import ( dump_env_logs, @@ -94,7 +95,11 @@ def main...
sys.exit(1) if exceptions are raised up to quickstart_deploy main().
py
diff --git a/tests/scripts/fastserializer.py b/tests/scripts/fastserializer.py index <HASH>..<HASH> 100755 --- a/tests/scripts/fastserializer.py +++ b/tests/scripts/fastserializer.py @@ -43,6 +43,7 @@ def isNaN(d): # work-around for Python 2.4 s = array.array("d", [d]) return (s.tostring() == "\x00\x00\x...
Makes the "not a number" check in Python fastserializer work on voltmini.
py
diff --git a/GPy/kern/_src/kern.py b/GPy/kern/_src/kern.py index <HASH>..<HASH> 100644 --- a/GPy/kern/_src/kern.py +++ b/GPy/kern/_src/kern.py @@ -49,7 +49,7 @@ class Kern(Parameterized): if active_dims is None: active_dims = np.arange(input_dim) - self.active_dims = np.array(active_dims,...
[kernel slicing] active_dims can be a single integer now
py
diff --git a/tests/test_config.py b/tests/test_config.py index <HASH>..<HASH> 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -18,6 +18,7 @@ PYPIRC = """\ index-servers = server1 server2 + server3 [server1] username:me @@ -28,6 +29,10 @@ username:meagain password: secret realm:acme ...
Issue #<I>: Add a test case to verify the % char can be used in .pypirc I noticed that there is no test for this feature while doing triaging work on pypa/pypi-legacy.
py
diff --git a/safe_qgis/widgets/dock.py b/safe_qgis/widgets/dock.py index <HASH>..<HASH> 100644 --- a/safe_qgis/widgets/dock.py +++ b/safe_qgis/widgets/dock.py @@ -238,7 +238,7 @@ class Dock(QtGui.QDockWidget, Ui_DockBase): """ dispatcher.send( signal=STATIC_MESSAGE_SIGNAL, - se...
Emit messages with proper sender object
py
diff --git a/AlphaTwirl/EventReader/EventReaderBundle.py b/AlphaTwirl/EventReader/EventReaderBundle.py index <HASH>..<HASH> 100755 --- a/AlphaTwirl/EventReader/EventReaderBundle.py +++ b/AlphaTwirl/EventReader/EventReaderBundle.py @@ -20,8 +20,8 @@ class EventReaderBundle(object): self.eventLoopRunner.begin() ...
rename a variable in EventReaderBundle
py
diff --git a/AlphaTwirl/EventReader/MPEventLoopRunner.py b/AlphaTwirl/EventReader/MPEventLoopRunner.py index <HASH>..<HASH> 100755 --- a/AlphaTwirl/EventReader/MPEventLoopRunner.py +++ b/AlphaTwirl/EventReader/MPEventLoopRunner.py @@ -2,7 +2,7 @@ from NullProgressMonitor import NullProgressMonitor import multiprocess...
shorten the rulers in comments in MPEventLoopRunner.py
py
diff --git a/bebop/model.py b/bebop/model.py index <HASH>..<HASH> 100644 --- a/bebop/model.py +++ b/bebop/model.py @@ -24,16 +24,16 @@ class Field(schema.SolrSchemaField): self._model_attr = model_attr def __gt__(self, other): - return LuceneQuery(self, '[', other, ' TO *]') + return L...
[model] inclusive/exclusive range fix
py
diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py index <HASH>..<HASH> 100644 --- a/pylint/checkers/typecheck.py +++ b/pylint/checkers/typecheck.py @@ -25,10 +25,10 @@ import sys import astroid import astroid.context import astroid.arguments -from astroid import bases from astroid import exce...
Update to use the new location of NodeNG.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,10 +14,10 @@ if not os.path.exists(README): description = "An implementation of the WebSocket Protocol (RFC 6455)" -with open(os.path.join(root, 'README')) as f: +with open(os.path.join(root, 'README'), encoding='utf-...
Don't rely on utf-8 being the default system encoding. Fix #7.
py
diff --git a/spyderlib/widgets/sourcecode/codeeditor.py b/spyderlib/widgets/sourcecode/codeeditor.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/sourcecode/codeeditor.py +++ b/spyderlib/widgets/sourcecode/codeeditor.py @@ -2131,7 +2131,10 @@ class CodeEditor(TextEditBaseWidget): last_two = self.get_tex...
Editor: Automatically enclose selected text in quotes Update Issue <I> Status: Started -. Implement the simplest case of quote enclosing, corresponding to suggestion 1. of comment #1.
py
diff --git a/jungle/ec2.py b/jungle/ec2.py index <HASH>..<HASH> 100644 --- a/jungle/ec2.py +++ b/jungle/ec2.py @@ -94,7 +94,11 @@ def create_ssh_command(instance_id, instance_name, username, key_file, port, ssh if instance_id is not None: try: instance = ec2.Instance(instance_id) - ...
Try the private IP if the public IP is not available when ssh'ing
py
diff --git a/salt/utils/yamldumper.py b/salt/utils/yamldumper.py index <HASH>..<HASH> 100644 --- a/salt/utils/yamldumper.py +++ b/salt/utils/yamldumper.py @@ -17,6 +17,13 @@ except ImportError: from salt.utils.odict import OrderedDict +try: + from ioflo.base.odicting import odict + HAS_IOFLO = True +except I...
Check for ioflo-flavored OrderedDicts as well when outputting YAML
py
diff --git a/irc/bot.py b/irc/bot.py index <HASH>..<HASH> 100644 --- a/irc/bot.py +++ b/irc/bot.py @@ -149,9 +149,6 @@ class SingleServerIRCBot(irc.client.SimpleIRCClient): method. """ - - has_connected = False - def __init__( self, server_list, @@ -203,13 +200,8 @@ class S...
Trigger the disconnection event if we fail to connect the first attempt
py
diff --git a/tests/test_init.py b/tests/test_init.py index <HASH>..<HASH> 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -43,7 +43,7 @@ END""" class TestLoad(unittest.TestCase): def setUp(self): self.simple = data_dir / "pds3" / "simple_image_1.lbl" - rawurl = "https://raw.githubuserc...
test(init): Turns out we had a URL that pointed into the "old" master branch, fixed to point at the new main.
py
diff --git a/typedload/dataloader.py b/typedload/dataloader.py index <HASH>..<HASH> 100644 --- a/typedload/dataloader.py +++ b/typedload/dataloader.py @@ -502,19 +502,19 @@ def _objloader(l: Loader, fields: Set[str], necessary_fields: Set[str], type_hin type_=type_, ) - fieldsdiff = vfields.d...
Remove one more set operation It can be done together with a later loop, and it's behind a conditional so it only happens if the option is enabled (it's disabled by default).
py
diff --git a/graphs/base.py b/graphs/base.py index <HASH>..<HASH> 100644 --- a/graphs/base.py +++ b/graphs/base.py @@ -24,6 +24,9 @@ class Graph(object): def num_vertices(self): raise NotImplementedError() + def add_self_edges(self, weight=None): + raise NotImplementedError() + def is_weighted(self): ...
Adding a stub for documentation
py
diff --git a/openpnm/algorithms/GenericTransport.py b/openpnm/algorithms/GenericTransport.py index <HASH>..<HASH> 100644 --- a/openpnm/algorithms/GenericTransport.py +++ b/openpnm/algorithms/GenericTransport.py @@ -705,7 +705,7 @@ class GenericTransport(GenericAlgorithm): r""" Wrapper ...
Minor refactor [ci skip]
py
diff --git a/src/python/dxpy/bindings/dxfile_functions.py b/src/python/dxpy/bindings/dxfile_functions.py index <HASH>..<HASH> 100644 --- a/src/python/dxpy/bindings/dxfile_functions.py +++ b/src/python/dxpy/bindings/dxfile_functions.py @@ -199,7 +199,7 @@ def _download_symbolic_link(dxid, md5digest, project, dest_filena...
Update dxfile_functions.py (#<I>)
py
diff --git a/graftm/create.py b/graftm/create.py index <HASH>..<HASH> 100644 --- a/graftm/create.py +++ b/graftm/create.py @@ -419,6 +419,8 @@ graftM create --taxtastic_taxonomy %s --taxtastic_seqinfo %s --alignment %s --r dereplicated_sequence_ids.append(sequence_id) ...
create: raise informative error when all except 1 sequence is dereplicated.
py
diff --git a/pmagpy/pmagplotlib.py b/pmagpy/pmagplotlib.py index <HASH>..<HASH> 100644 --- a/pmagpy/pmagplotlib.py +++ b/pmagpy/pmagplotlib.py @@ -130,6 +130,8 @@ def plot_init(fignum, w, h): """ global fig_x_pos, fig_y_pos, plt_num dpi = 80 + if pmagplotlib.isServer: + dpi = 800 # plt.ion...
use higher dpi for server plots, #<I>
py
diff --git a/panoramix/views.py b/panoramix/views.py index <HASH>..<HASH> 100644 --- a/panoramix/views.py +++ b/panoramix/views.py @@ -262,7 +262,9 @@ appbuilder.add_view( class DatasourceModelView(PanoramixModelView, DeleteMixin): datamodel = SQLAInterface(models.Datasource) list_columns = [ - 'datas...
Better list view for druid datasurces
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -14,7 +14,6 @@ import sys import os -import pip import sphinx_rtd_theme # If extensions (or modules to document with autodoc) are in another directory, @@ -113,10 +112,6 @@ html_theme = 'sphinx_rtd_theme' ...
Remove unnecessary import of pip in Sphinx conf.py The "import pip" in doc/conf.py added an unnecessary build dependency. It appeared to be there as at one point a theme for Sphinx was installed from pip, but now the rtd theme is used instead.
py
diff --git a/internals/states.py b/internals/states.py index <HASH>..<HASH> 100644 --- a/internals/states.py +++ b/internals/states.py @@ -332,16 +332,16 @@ class HSMMStatesPython(HMMStatesPython): stateseq_norep ''' - def __init__(self,model,censoring=True,trunc=None,**kwargs): + def __init__(self,mo...
cleaned up HSMMStates.__init__
py
diff --git a/wandb/sync.py b/wandb/sync.py index <HASH>..<HASH> 100644 --- a/wandb/sync.py +++ b/wandb/sync.py @@ -105,7 +105,7 @@ class FileTailer(object): def _thread_body(self): while True: data = self._file.read(1024) - if data == '': + if not data: ...
Fix high-cpu usage when no new tailed lines.
py
diff --git a/steam/webauth.py b/steam/webauth.py index <HASH>..<HASH> 100644 --- a/steam/webauth.py +++ b/steam/webauth.py @@ -216,7 +216,7 @@ class MobileWebAuth(WebAuth): def _send_login(self, captcha='', email_code='', twofactor_code=''): data = { 'username' : self.username, - "...
MobileWebAuth: fix password encryption missed in b<I>f
py
diff --git a/micromongo/backend.py b/micromongo/backend.py index <HASH>..<HASH> 100644 --- a/micromongo/backend.py +++ b/micromongo/backend.py @@ -35,8 +35,9 @@ class Collection(PymongoCollection): class Cursor(PymongoCursor): def __init__(self, *args, **kwargs): + super(Cursor, self).__init__(*args, **k...
fix the cursor class in the backend; we were accessing attributes before calling super before, which is bad
py
diff --git a/ctypeslib/codegen/codegenerator.py b/ctypeslib/codegen/codegenerator.py index <HASH>..<HASH> 100644 --- a/ctypeslib/codegen/codegenerator.py +++ b/ctypeslib/codegen/codegenerator.py @@ -809,7 +809,7 @@ class Generator(object): # doesn't work for the first line in certain cases. wrapper = ...
codegenerator.py: Sort __all__ variable This ensures the same code (for __all__) is generated on multiple calls as the ordering is defined.
py
diff --git a/salt/states/nfs_export.py b/salt/states/nfs_export.py index <HASH>..<HASH> 100644 --- a/salt/states/nfs_export.py +++ b/salt/states/nfs_export.py @@ -177,9 +177,14 @@ def absent(name, exports='/etc/exports'): return ret __salt__['nfs3.del_export'](exports, path) - ret['commen...
nfs_exports: add reload to absent() with error handling
py
diff --git a/alphatwirl/concurrently/HTCondorJobSubmitter.py b/alphatwirl/concurrently/HTCondorJobSubmitter.py index <HASH>..<HASH> 100755 --- a/alphatwirl/concurrently/HTCondorJobSubmitter.py +++ b/alphatwirl/concurrently/HTCondorJobSubmitter.py @@ -295,9 +295,9 @@ def submit_jobs(job_desc, cwd=None): return clus...
rename ids clusterids in query_status_for()
py
diff --git a/i3pystatus/pulseaudio/__init__.py b/i3pystatus/pulseaudio/__init__.py index <HASH>..<HASH> 100644 --- a/i3pystatus/pulseaudio/__init__.py +++ b/i3pystatus/pulseaudio/__init__.py @@ -147,7 +147,7 @@ class PulseAudio(Module, ColorRangeModule): self.request_update(context) - def sink_info_cb(s...
pulseaudio: remove output when sink is gone (#<I>) When `sink` is set and you have USB card or Bluetooth headset. When the sink is created, the output is set and the module appear. But when the sink is deleted, the output is not deleted, and the module stay. This change detects when the sink is deleted and d...
py
diff --git a/trezorlib/client.py b/trezorlib/client.py index <HASH>..<HASH> 100644 --- a/trezorlib/client.py +++ b/trezorlib/client.py @@ -200,7 +200,8 @@ class TrezorClient: def is_outdated(self): if self.features.bootloader_mode: return False - required_version = MINIMUM_FIRMWARE_VER...
client: fix bug with old firmware that doesn't send the "model" field
py
diff --git a/tests/tests.py b/tests/tests.py index <HASH>..<HASH> 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -1555,6 +1555,22 @@ END values = cur.callproc('testproc', (1, output(value=default, param_type=int), output(value=default, param_type=str))) self.assertEqual([1, 9, 'defstr1'],...
added test for assigning selects, currently assigning selects break result sets
py
diff --git a/imhotep/main.py b/imhotep/main.py index <HASH>..<HASH> 100644 --- a/imhotep/main.py +++ b/imhotep/main.py @@ -156,11 +156,6 @@ class Imhotep(object): reporter = self.get_reporter() - if self.debug: - logging.basicConfig(level=logging.DEBUG) - else: - logging...
Alter the logging config in __main__, not in the class
py
diff --git a/examples/forked.py b/examples/forked.py index <HASH>..<HASH> 100644 --- a/examples/forked.py +++ b/examples/forked.py @@ -69,7 +69,8 @@ def server_main(loop, path): logger.debug('running server loop') - loop.loop() + import cProfile + cProfile.runctx('loop.loop()', None, {'loop':loop}, 's...
enable forked profiling just for fun and giggles
py
diff --git a/pylocus/lateration.py b/pylocus/lateration.py index <HASH>..<HASH> 100644 --- a/pylocus/lateration.py +++ b/pylocus/lateration.py @@ -87,8 +87,10 @@ def SRLS(anchors, W, r2, print_out=False): yhat = y_hat(lambda_opt) # By definition, y = [x^T, alpha] and by constraints, alpha=norm(x)^2 - ass...
Commented out assertions in SRLS - to be checked later.
py
diff --git a/quiver.py b/quiver.py index <HASH>..<HASH> 100644 --- a/quiver.py +++ b/quiver.py @@ -47,8 +47,8 @@ def plot(): try: dy = f(a, b) n = sqrt(dx + dy**2) - dx /= n - dy /= n + dy /= sqrt(n) + ...
Scale arrows by square root of magnitude.
py
diff --git a/cardinal_pythonlib/email/sendmail.py b/cardinal_pythonlib/email/sendmail.py index <HASH>..<HASH> 100755 --- a/cardinal_pythonlib/email/sendmail.py +++ b/cardinal_pythonlib/email/sendmail.py @@ -281,7 +281,11 @@ def send_msg(from_addr: str, # Connect try: session = smtplib.SMTP(host, port...
Handle more exceptions from smtplib when sending mail It's not well documented but smtplib can raise exceptions that are not SMTPException, such as ConnectionRefusedError. So if we catch OSError instead of SMTPException we should be able to handle these as well. Discussion at <URL>
py
diff --git a/tests/test_environs.py b/tests/test_environs.py index <HASH>..<HASH> 100644 --- a/tests/test_environs.py +++ b/tests/test_environs.py @@ -227,11 +227,6 @@ class TestEnvFileReading: assert env.list("LIST") == ["wat", "wer", "wen"] assert env("PROXIED") == "foo" - def test_read_env_not...
Remove test that is incompatible with newer versions of python-dotenv (#<I>)
py
diff --git a/tests/python/unittest/test_module.py b/tests/python/unittest/test_module.py index <HASH>..<HASH> 100644 --- a/tests/python/unittest/test_module.py +++ b/tests/python/unittest/test_module.py @@ -44,6 +44,18 @@ def test_module_dtype(): assert x.dtype == dtype +def test_module_bind(): + sym = mx...
Add test to check that binded is not set when exception thrown (#<I>) * add test to check binded is not when exception thrown * add error to assertion * fix typo by adding asserts * retrigger
py
diff --git a/molo/commenting/tests/test_views.py b/molo/commenting/tests/test_views.py index <HASH>..<HASH> 100644 --- a/molo/commenting/tests/test_views.py +++ b/molo/commenting/tests/test_views.py @@ -382,3 +382,14 @@ class TestFrontEndCommentReplies(TestCase, MoloTestCaseMixin): client.login( u...
Test that user without credentials cannot reply to comments
py
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index <HASH>..<HASH> 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -156,15 +156,17 @@ class TestUserInstallTest: @mock.patch('setuptools.command.easy_install.__file__', N...
Update test to match new expectation following pull request #<I>. Refs #<I>.
py
diff --git a/vstutils/api/decorators.py b/vstutils/api/decorators.py index <HASH>..<HASH> 100644 --- a/vstutils/api/decorators.py +++ b/vstutils/api/decorators.py @@ -179,7 +179,9 @@ class nested_view(BaseClassDecorator): # pylint: disable=invalid-name def decorated_list(self): name, view = self.get_li...
Fix lists of nested view in schema to show paginated responses
py
diff --git a/aioredis/connection.py b/aioredis/connection.py index <HASH>..<HASH> 100644 --- a/aioredis/connection.py +++ b/aioredis/connection.py @@ -76,8 +76,8 @@ async def create_connection(address, *, db=None, password=None, ssl=None, """ assert isinstance(address, (tuple, list, str)), "tuple or str expec...
now only logging the address and not the password or other sensitive details
py
diff --git a/app/drivers/lookup.py b/app/drivers/lookup.py index <HASH>..<HASH> 100644 --- a/app/drivers/lookup.py +++ b/app/drivers/lookup.py @@ -8,11 +8,12 @@ from app.drivers.base import BaseDriver class LookupDriver(BaseDriver): def __init__(self, **kwargs): super().__init__(**kwargs) - lookup...
Output after input lookup file or make filename up
py
diff --git a/qds_sdk/scheduler.py b/qds_sdk/scheduler.py index <HASH>..<HASH> 100644 --- a/qds_sdk/scheduler.py +++ b/qds_sdk/scheduler.py @@ -265,7 +265,7 @@ class Scheduler(Resource): if per_page is not None: page_attr.append("per_page=%s" % per_page) if page_attr: - url_path...
fix: dev: Fixed bugs in scheduler.py #<I> This fixes a bug where when specifying page arguments to list_instances, "NameError: global name 'args' is not defined", occurs. Also fixes a "can't combine int and str" bug with rerun
py
diff --git a/trezorlib/tests/device_tests/test_msg_signtx_decred.py b/trezorlib/tests/device_tests/test_msg_signtx_decred.py index <HASH>..<HASH> 100644 --- a/trezorlib/tests/device_tests/test_msg_signtx_decred.py +++ b/trezorlib/tests/device_tests/test_msg_signtx_decred.py @@ -35,8 +35,8 @@ TXHASH_3f7c39 = unhexlify("...
device_tests: re-enable decred test for T1
py
diff --git a/util_functions.py b/util_functions.py index <HASH>..<HASH> 100644 --- a/util_functions.py +++ b/util_functions.py @@ -76,7 +76,8 @@ def spell_correct(string): try: p = os.popen(aspell_path + " -a < " + f_path + " --sug-mode=ultra") except: - return string,0 + log.exception(...
Fix issue with aspell not working properly
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -45,6 +45,7 @@ install_requires = [ 'fedmsg', 'python-fedora', 'python-dateutil', + 'pytz' ] tests_require = [ 'nose',
buildsys.py needs pytz
py
diff --git a/gui/tools/designer.py b/gui/tools/designer.py index <HASH>..<HASH> 100644 --- a/gui/tools/designer.py +++ b/gui/tools/designer.py @@ -544,7 +544,7 @@ if __name__ == '__main__': vars = {} execfile(filename, vars) - w = None + root = None for name, value in vars.items(): i...
added better alert when pyw file has no window to design
py
diff --git a/galpy/orbit_src/integratePlanarOrbit.py b/galpy/orbit_src/integratePlanarOrbit.py index <HASH>..<HASH> 100644 --- a/galpy/orbit_src/integratePlanarOrbit.py +++ b/galpy/orbit_src/integratePlanarOrbit.py @@ -63,6 +63,13 @@ def _parse_pot(pot): else: pot_args.extend([p._amp,p._tf...
add MiyamotoNagai to planar integration
py
diff --git a/spyder/widgets/browser.py b/spyder/widgets/browser.py index <HASH>..<HASH> 100644 --- a/spyder/widgets/browser.py +++ b/spyder/widgets/browser.py @@ -367,9 +367,15 @@ class WebView(QWebEngineView, SpyderWidgetMixin): else: super(WebView, self).setHtml(html, baseUrl) - # Th...
Widgets: Catch error when trying to install event filter in WebView
py
diff --git a/salt/cloud/clouds/linode.py b/salt/cloud/clouds/linode.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/linode.py +++ b/salt/cloud/clouds/linode.py @@ -44,9 +44,6 @@ from salt.exceptions import ( SaltCloudSystemExit ) -# Import Salt-Cloud Libs -import salt.utils.cloud - # Get logging started...
Move "salt.utils" calls to __utils__ in linode driver
py
diff --git a/openquake/engine/db/schema/upgrades/0008-slow-change-ses-collection.py b/openquake/engine/db/schema/upgrades/0008-slow-change-ses-collection.py index <HASH>..<HASH> 100644 --- a/openquake/engine/db/schema/upgrades/0008-slow-change-ses-collection.py +++ b/openquake/engine/db/schema/upgrades/0008-slow-change...
Removed also the old outputs Former-commit-id: 3a<I>c0d<I>a1e6bcbaf<I>d5bf5dccf8a<I>e
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -54,7 +54,7 @@ if sys.version_info[:2] < (2, 7): setup( name='luigi', - version='1.1.1', + version='1.1.2', description='Workflow mgmgt + task scheduling + dependency resolution', long_description=long_...
<I> in master from now on
py
diff --git a/pyevmasm/evmasm.py b/pyevmasm/evmasm.py index <HASH>..<HASH> 100644 --- a/pyevmasm/evmasm.py +++ b/pyevmasm/evmasm.py @@ -905,7 +905,7 @@ def block_to_fork(block_number): 2463000: "tangerine_whistle", 2675000: "spurious_dragon", 4370000: "byzantium", - 9999998: "consta...
Update evmasm.py Add block number for Constantinople fork
py
diff --git a/records.py b/records.py index <HASH>..<HASH> 100644 --- a/records.py +++ b/records.py @@ -210,6 +210,12 @@ class Database(object): # Enable hstore if it's available. self._enable_hstore() + def __enter__(self): + return self + + def __exit__(self, exc, val, traceback): + ...
enter and exit methods as per Issue #<I>
py
diff --git a/configlib/core.py b/configlib/core.py index <HASH>..<HASH> 100644 --- a/configlib/core.py +++ b/configlib/core.py @@ -470,7 +470,10 @@ class BaseConfig(object): return getattr(self, '__{field}_hint__'.format(field=field), field) def __reset__(self): - os.remove(self.__config_path__) ...
fixed reset crash when file does not exist
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ install_requirements = [ "oceandb-driver-interface==0.2.0", "oceandb-mongodb-driver==0.2.2", "oceandb-elasticsearch-driver==0.4.4", - "PyYAML==5.4.1", + "PyYAML==5.3.1", "pytz==2020.5",...
Downgrade PyYAML for ocean-lib compatibility.
py
diff --git a/pgmpy/independencies/Independencies.py b/pgmpy/independencies/Independencies.py index <HASH>..<HASH> 100644 --- a/pgmpy/independencies/Independencies.py +++ b/pgmpy/independencies/Independencies.py @@ -37,7 +37,7 @@ class Independencies: Public Methods -------------- add_assertions - get_...
[fixes #<I>] changed name of get_independencies method to get_assertions
py
diff --git a/pytestsalt/fixtures/daemons.py b/pytestsalt/fixtures/daemons.py index <HASH>..<HASH> 100644 --- a/pytestsalt/fixtures/daemons.py +++ b/pytestsalt/fixtures/daemons.py @@ -20,7 +20,6 @@ import sys import json import socket import logging -import traceback import subprocess import multiprocessing from c...
We're already logging the exception.
py
diff --git a/zeronimo/core.py b/zeronimo/core.py index <HASH>..<HASH> 100644 --- a/zeronimo/core.py +++ b/zeronimo/core.py @@ -311,15 +311,12 @@ class _Emitter(object): collector = None pack = None - def __init__(self, socket, collector=None, timeout=None, pack=PACK): - super(_Emitter, self).__ini...
don't set Emitter.timeout at __init__()
py
diff --git a/bundles.py b/bundles.py index <HASH>..<HASH> 100644 --- a/bundles.py +++ b/bundles.py @@ -25,7 +25,8 @@ from invenio.ext.assets import Bundle css = Bundle( "css/formatter/templates_brief.css", "css/formatter/templates_detailed.css", - output="gen/formatter.js", - name="60-formatter.css", +...
assets: bundles with weight * Changes the ordering of the bundles using a weight attribute. * Adds more debugging helps for the assets as html comments.
py
diff --git a/gwpy/table/table.py b/gwpy/table/table.py index <HASH>..<HASH> 100644 --- a/gwpy/table/table.py +++ b/gwpy/table/table.py @@ -552,11 +552,10 @@ class EventTable(Table): try: tcol = self._get_time_column() except ValueError: - pass - else: - if arg...
gwpy.table.Table._plot: removed unnecessary conditional
py
diff --git a/jams/tests/namespace_tests.py b/jams/tests/namespace_tests.py index <HASH>..<HASH> 100644 --- a/jams/tests/namespace_tests.py +++ b/jams/tests/namespace_tests.py @@ -225,3 +225,22 @@ def test_ns_pitch_hz_invalid(): for value in ['a', None, True]: yield __test, value + +def test_ns_key_mode(...
#<I> added key mode validation
py
diff --git a/django_q/tests/test_brokers.py b/django_q/tests/test_brokers.py index <HASH>..<HASH> 100644 --- a/django_q/tests/test_brokers.py +++ b/django_q/tests/test_brokers.py @@ -86,12 +86,7 @@ def test_disque(): assert task is not None broker.acknowledge(task[0]) # test duplicate acknowledge...
Disque now passes the double ack test
py
diff --git a/spyder/config/user.py b/spyder/config/user.py index <HASH>..<HASH> 100644 --- a/spyder/config/user.py +++ b/spyder/config/user.py @@ -386,12 +386,13 @@ class UserConfig(DefaultsConfig): value = float(value) elif isinstance(default_value, int): value = int(value) - ...
Change UserConfig get method to avoid to convert str to tuples or list
py
diff --git a/codenerix_payments/models.py b/codenerix_payments/models.py index <HASH>..<HASH> 100644 --- a/codenerix_payments/models.py +++ b/codenerix_payments/models.py @@ -1200,8 +1200,7 @@ class PaymentAnswer(CodenerixModel): elif key == 'Ds_MerchantParameters': paramsb...
Encoding/Decoding for python2-3 compatibility
py
diff --git a/nipap/nipap/nipapconfig.py b/nipap/nipap/nipapconfig.py index <HASH>..<HASH> 100644 --- a/nipap/nipap/nipapconfig.py +++ b/nipap/nipap/nipapconfig.py @@ -1,11 +1,5 @@ import ConfigParser -__version__ = "0.5.0" -__author__ = "Kristian Larsson, Lukas Garberg" -__copyright__ = "Copyright 2011, Kris...
Remove unnecessary version information This was for packaging certain libs into a separate package but since that never really happened I'm removing it to have less places to update when releasing a new version. Part of #<I>
py
diff --git a/alot/settings/manager.py b/alot/settings/manager.py index <HASH>..<HASH> 100644 --- a/alot/settings/manager.py +++ b/alot/settings/manager.py @@ -190,7 +190,7 @@ class SettingsManager(object): """ setter for global config values - :param key: config option identifise + :pa...
settings/manager: fix typo in docstring
py
diff --git a/tools/run_tests/python_utils/filter_pull_request_tests.py b/tools/run_tests/python_utils/filter_pull_request_tests.py index <HASH>..<HASH> 100644 --- a/tools/run_tests/python_utils/filter_pull_request_tests.py +++ b/tools/run_tests/python_utils/filter_pull_request_tests.py @@ -98,6 +98,7 @@ _WHITELIST_DICT...
Add tools/internal_ci/ to test filter
py
diff --git a/sos/plugins/postgresql.py b/sos/plugins/postgresql.py index <HASH>..<HASH> 100644 --- a/sos/plugins/postgresql.py +++ b/sos/plugins/postgresql.py @@ -38,7 +38,7 @@ class PostgreSQL(Plugin): option_list = [ ('pghome', 'PostgreSQL server home directory.', '', '/var/lib/pgsql'), ('usern...
[postgresql] ensure password option is initialised to known value The value of self.get_option("password") is tested in the postgresql plugin's setup() method to determine if the user gave a password on the command line. Set the default value to False to ensure we get the expected comparison results.
py
diff --git a/spotify/client.py b/spotify/client.py index <HASH>..<HASH> 100644 --- a/spotify/client.py +++ b/spotify/client.py @@ -47,9 +47,9 @@ class Client: def id(self): return self.http.client_id - def close(self): + async def close(self): '''Close the underlying HTTP session to spoti...
bugfix removed refrence to depreciated _sync_close of HTTPClient
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -31,6 +31,7 @@ else: require("numpy") require("ruamel.yaml") require("annotypes") + require("cothread") from mock import MagicMock @@ -38,7 +39,8 @@ from annotypes import make_annotations...
Mock out a few more libraries for docs build
py
diff --git a/pingouin/correlation.py b/pingouin/correlation.py index <HASH>..<HASH> 100644 --- a/pingouin/correlation.py +++ b/pingouin/correlation.py @@ -508,6 +508,8 @@ def corr(x, y, tail='two-sided', method='pearson', **kwargs): y = np.asarray(y) assert x.ndim == y.ndim == 1, 'x and y must be 1D array.' ...
add safety check for tail in corr func
py
diff --git a/scripts/bcbio_fastq_umi_prep.py b/scripts/bcbio_fastq_umi_prep.py index <HASH>..<HASH> 100755 --- a/scripts/bcbio_fastq_umi_prep.py +++ b/scripts/bcbio_fastq_umi_prep.py @@ -64,8 +64,12 @@ def run_autopair(args): for fnames in fastq.combine_pairs(sorted(args.files)): if len(fnames) == 2: ...
UMIs: support groups of 3 in fastq preparation combine_pairs now supports up to 4 combined so will have r1, r2, and r3 grouped together.
py
diff --git a/virtualbox.py b/virtualbox.py index <HASH>..<HASH> 100644 --- a/virtualbox.py +++ b/virtualbox.py @@ -198,6 +198,22 @@ def vb_get_manager(): return vbox +def vb_create_machine(name=None): + vbox = vb_get_manager() + log.info("Create virtualbox machine %s " % (name,)) + groups = None + ...
Introduce a method to help us create VMs (not clones)
py
diff --git a/pyinstrument/profiler.py b/pyinstrument/profiler.py index <HASH>..<HASH> 100644 --- a/pyinstrument/profiler.py +++ b/pyinstrument/profiler.py @@ -291,10 +291,12 @@ class Frame(object): code_position=self.code_position_short, c=colors_enabled if color else colors_disabled) - ...
Don’t print frames in the text output with <1% of the total time
py
diff --git a/lancet/topographica.py b/lancet/topographica.py index <HASH>..<HASH> 100644 --- a/lancet/topographica.py +++ b/lancet/topographica.py @@ -576,7 +576,6 @@ class batch_analysis(review_and_launch): print "Running reduce in directory %s" % os.path.basename(root_directory) log_name = "%s.log" % ta...
Removed single stray print statement
py
diff --git a/gandi/cli/modules/account.py b/gandi/cli/modules/account.py index <HASH>..<HASH> 100644 --- a/gandi/cli/modules/account.py +++ b/gandi/cli/modules/account.py @@ -35,6 +35,9 @@ class Account(GandiModule): account = cls.info() creditusage = cls.creditusage() + if not creditusage: +...
Sometimes rating doesn't return value for credit usage. This fixes a bug generating a Traceback when no value from API rating was returned.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ import sys -from setuptools import setup +from setuptools import setup, find_packages setup( name='gql', @@ -23,7 +23,7 @@ setup( 'Programming Language :: Python :: Implementation :: PyPy', ...
Fixed packages definition (missing the transports module on install)
py
diff --git a/chessboard/chessboard.py b/chessboard/chessboard.py index <HASH>..<HASH> 100644 --- a/chessboard/chessboard.py +++ b/chessboard/chessboard.py @@ -217,8 +217,8 @@ class Board(object): # board. territory = piece.territory - # Check that the piece's territory doesn't overlap the ter...
PEP8: cut at <I>-chars.
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 @@ -739,11 +739,10 @@ class ClientWidget(QWidget, SaveHistoryMixin): ...
Console: Don't block for special console check
py
diff --git a/pifx/util.py b/pifx/util.py index <HASH>..<HASH> 100644 --- a/pifx/util.py +++ b/pifx/util.py @@ -33,11 +33,11 @@ def arg_tup_to_dict(argument_tuples): """Given a set of argument tuples, set their value in a data dictionary if not blank""" data = dict() for arg_name, arg_val in argument_tupl...
Use "is" instead of "==" to avoid type conflicts
py
diff --git a/dwave/cloud/cli.py b/dwave/cloud/cli.py index <HASH>..<HASH> 100644 --- a/dwave/cloud/cli.py +++ b/dwave/cloud/cli.py @@ -99,6 +99,7 @@ def create(config_file, profile): config_file = get_default_configfile_path() click.echo("Configuration file not found; the default location is: ...
CLI conf: expand ~ in user-input config path
py
diff --git a/panphon/test/test_distance.py b/panphon/test/test_distance.py index <HASH>..<HASH> 100644 --- a/panphon/test/test_distance.py +++ b/panphon/test/test_distance.py @@ -36,10 +36,10 @@ class TestUnweightedFeatureEditDist(unittest.TestCase): self.dist = distance.Distance(feature_model=feature_model) ...
Updated to use numeric represenations
py
diff --git a/openhtf/exe/triggers.py b/openhtf/exe/triggers.py index <HASH>..<HASH> 100644 --- a/openhtf/exe/triggers.py +++ b/openhtf/exe/triggers.py @@ -38,14 +38,20 @@ TestStop: import logging import time +import gflags + from openhtf.io import user_input -_LOG = logging.getLogger(__name__) +gflags.DEFINE_str...
Add ability to pass in dut_serial via command line flag Fixes #<I>
py
diff --git a/ml-agents/mlagents/trainers/torch/distributions.py b/ml-agents/mlagents/trainers/torch/distributions.py index <HASH>..<HASH> 100644 --- a/ml-agents/mlagents/trainers/torch/distributions.py +++ b/ml-agents/mlagents/trainers/torch/distributions.py @@ -191,11 +191,11 @@ class MultiCategoricalDistribution(nn.M...
Added a comment and included the change of #<I> for simplicity
py
diff --git a/prospector/tools/pyroma/__init__.py b/prospector/tools/pyroma/__init__.py index <HASH>..<HASH> 100644 --- a/prospector/tools/pyroma/__init__.py +++ b/prospector/tools/pyroma/__init__.py @@ -60,7 +60,7 @@ class PyromaTool(ToolBase): continue passed = test.test(data) -...
Fixing the test to see whether a test passed or failed. Pyroma messages return True if the test passed, False if it did not and None if it did not run, so the check should be 'result is False' instead of 'not result'
py
diff --git a/pythonforandroid/bootstraps/sdl2_gradle/__init__.py b/pythonforandroid/bootstraps/sdl2_gradle/__init__.py index <HASH>..<HASH> 100644 --- a/pythonforandroid/bootstraps/sdl2_gradle/__init__.py +++ b/pythonforandroid/bootstraps/sdl2_gradle/__init__.py @@ -74,8 +74,7 @@ class SDL2GradleBootstrap(Bootstrap): ...
Moved libs dir in bootstrap back to 'libs' instead of 'src/main/...'
py
diff --git a/abilian/web/forms/fields.py b/abilian/web/forms/fields.py index <HASH>..<HASH> 100644 --- a/abilian/web/forms/fields.py +++ b/abilian/web/forms/fields.py @@ -168,6 +168,13 @@ class FileField(BaseFileField): return super(FileField, self).process(formdata, *args, **kwargs) + def process_data(self, ...
filefield: change object_data to data if it's a model instance
py
diff --git a/api/views.py b/api/views.py index <HASH>..<HASH> 100644 --- a/api/views.py +++ b/api/views.py @@ -4,6 +4,7 @@ RESTful view classes for presenting Deis API objects. # pylint: disable=R0901,R0904 from __future__ import unicode_literals +import importlib import json from Crypto.PublicKey import RSA @@...
fix bug where key changes did not trigger gitosis update
py
diff --git a/salt/state.py b/salt/state.py index <HASH>..<HASH> 100644 --- a/salt/state.py +++ b/salt/state.py @@ -756,7 +756,6 @@ class State(object): ).format(str(req_val))) continue - ...
Removing a stray print in state.py This was really annoying when running salt-call in <I>
py
diff --git a/src/urh/signalprocessing/ProtocolSniffer.py b/src/urh/signalprocessing/ProtocolSniffer.py index <HASH>..<HASH> 100644 --- a/src/urh/signalprocessing/ProtocolSniffer.py +++ b/src/urh/signalprocessing/ProtocolSniffer.py @@ -96,8 +96,10 @@ class ProtocolSniffer(ProtocolAnalyzer, QObject): self.qt_sig...
fix linebreaks in protocol sniff file
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100644 --- a/test.py +++ b/test.py @@ -26,8 +26,6 @@ def create_tmp_test(code): - - @requires_posix class Basic(unittest.TestCase): @@ -622,5 +620,8 @@ for i in xrange(42): if __name__ == "__main__": - suite = unittest.TestLoader().loadTestsFromT...
allowing 2 modes of running unittests
py
diff --git a/dataproperty/_preprocessor.py b/dataproperty/_preprocessor.py index <HASH>..<HASH> 100644 --- a/dataproperty/_preprocessor.py +++ b/dataproperty/_preprocessor.py @@ -11,7 +11,7 @@ from ._function import strip_ansi_escape from ._line_break import LineBreakHandling -_RE_LINE_BREAK = re.compile("[\r\n]+"...
Fix a regular expression for line breaks
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ if cythonize: setup( name = 'PySCIPOpt', - version = '1.0.1', + version = '1.0.2', description = 'Python interface and modeling environment for SCIP', url = 'https://github.com/SCIP-Inter...
increase version number to <I>
py
diff --git a/gns3server/controller/compute.py b/gns3server/controller/compute.py index <HASH>..<HASH> 100644 --- a/gns3server/controller/compute.py +++ b/gns3server/controller/compute.py @@ -426,7 +426,7 @@ class Compute: except aiohttp.errors.WSServerHandshakeError: self._ws = None ...
Avoid a crash when the connection with the server close
py
diff --git a/pylastests/test_extrabytes.py b/pylastests/test_extrabytes.py index <HASH>..<HASH> 100644 --- a/pylastests/test_extrabytes.py +++ b/pylastests/test_extrabytes.py @@ -89,6 +89,10 @@ def test_conversion_keeps_eb(extrab_las): eb_0 = pylas.convert(extrab_las, point_format_id=0) assert eb_0.points_d...
use write_then_read_again in extrabytes convertion test
py
diff --git a/eval.py b/eval.py index <HASH>..<HASH> 100644 --- a/eval.py +++ b/eval.py @@ -20,6 +20,12 @@ import os import math import argparse +def compat_splitting(line): + if sys.version > "3": + return line.split() + else: # if version is 2 + return line.decode('utf8').split() + def similar...
removing some incompatibility issues with python3
py