diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ setup(
author='Michael Rooney',
author_email='mrooney.mintapi@rowk.com',
url='https://github.com/mrooney/mintapi',
- install_requires=['requests', 'xmltodict'],
+ install_requires=['requests... | setup.py to require seleniumrequests. | py |
diff --git a/bakery/management/commands/build.py b/bakery/management/commands/build.py
index <HASH>..<HASH> 100644
--- a/bakery/management/commands/build.py
+++ b/bakery/management/commands/build.py
@@ -58,11 +58,11 @@ Will use settings.BUILD_DIR by default."
help="Skip collecting the media files when buil... | Build pooling should be opt in, rather than opt out | py |
diff --git a/scoop/_control.py b/scoop/_control.py
index <HASH>..<HASH> 100644
--- a/scoop/_control.py
+++ b/scoop/_control.py
@@ -21,6 +21,7 @@ import tempfile
import sys
import math
from functools import partial
+import traceback
import greenlet
@@ -126,14 +127,14 @@ def runFuture(future):
try:
... | + Added support for traceback in Python 2 | py |
diff --git a/ui/chapman_kolmogorov_test.py b/ui/chapman_kolmogorov_test.py
index <HASH>..<HASH> 100644
--- a/ui/chapman_kolmogorov_test.py
+++ b/ui/chapman_kolmogorov_test.py
@@ -10,8 +10,6 @@ import numpy as np
from pyemma.msm.generation import generate_traj
from pyemma.msm.estimation import cmatrix, largest_connect... | [msm/ui] Fixed imports | py |
diff --git a/kubernetes/models/v1/HTTPGetAction.py b/kubernetes/models/v1/HTTPGetAction.py
index <HASH>..<HASH> 100644
--- a/kubernetes/models/v1/HTTPGetAction.py
+++ b/kubernetes/models/v1/HTTPGetAction.py
@@ -55,7 +55,7 @@ class HTTPGetAction(object):
def path(self, path=None):
if not is_valid_string(pa... | v1.HTTPGetAction: fixes path accessor | py |
diff --git a/pipes/configs/prepare_configs.py b/pipes/configs/prepare_configs.py
index <HASH>..<HASH> 100644
--- a/pipes/configs/prepare_configs.py
+++ b/pipes/configs/prepare_configs.py
@@ -9,7 +9,7 @@ import gitlab
from .utils import get_configs
-ENVS = ('dev', 'stage', 'prod')
+ENVS = ('dev', 'stage', 'prod', '... | Capture other pci and sox related application.json files Related: PSOBAT-<I> | py |
diff --git a/openquake/engine/calculators/hazard/event_based/core.py b/openquake/engine/calculators/hazard/event_based/core.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/calculators/hazard/event_based/core.py
+++ b/openquake/engine/calculators/hazard/event_based/core.py
@@ -160,10 +160,12 @@ def _save_ses_ruptu... | set magnitude and hypocenter also in the complete_logic_tree case Former-commit-id: d8a<I>d<I>e0ff<I>efc<I>ffc<I>c<I>d<I>d6 | py |
diff --git a/doapi/__init__.py b/doapi/__init__.py
index <HASH>..<HASH> 100644
--- a/doapi/__init__.py
+++ b/doapi/__init__.py
@@ -1,4 +1,4 @@
-__version__ = '0.1.1'
+__version__ = '0.2.0.dev1'
from .base import (DOEncoder, Region, Size, Account, Kernel,
DropletUpgrade, Networks, Ne... | Perform further development on a dev branch | py |
diff --git a/spyderlib/widgets/editor.py b/spyderlib/widgets/editor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/editor.py
+++ b/spyderlib/widgets/editor.py
@@ -1096,8 +1096,9 @@ class EditorStack(QWidget):
print >>STDOUT, "current_changed:", index, self.data[index].editor,
print >>... | Editor/bugfix: an error occured when closing the last opened file (this bug was introduced when implementing the cursor position history feature) | py |
diff --git a/wicken/netcdf_dogma.py b/wicken/netcdf_dogma.py
index <HASH>..<HASH> 100755
--- a/wicken/netcdf_dogma.py
+++ b/wicken/netcdf_dogma.py
@@ -72,5 +72,5 @@ class NetCDFDogma(xml_dogma.MultipleXmlDogma):
except:
pass
- raise XmlDogmaException('The belief "%s" does not have a valid... | Updated invalid exception throwing in netcdf dogma | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100755
--- a/runtests.py
+++ b/runtests.py
@@ -12,10 +12,7 @@ def runtests():
from django.test.utils import get_runner
from django.conf import settings
- try:
- django.setup()
- except AttributeError: # 1.6 or lower
- pass
+ ... | Remove compat shim as it doesn't apply | py |
diff --git a/anyconfig/backend/base.py b/anyconfig/backend/base.py
index <HASH>..<HASH> 100644
--- a/anyconfig/backend/base.py
+++ b/anyconfig/backend/base.py
@@ -192,7 +192,7 @@ class Parser(TextFilesMixin):
_dicts = [x for x in (options.get(o) for o in self.dict_options())
if x]
- ... | fix: ignore ac_dict if backend cannot support to customize dict to be used in making results from loaded data | py |
diff --git a/scripts/jenkins-build.py b/scripts/jenkins-build.py
index <HASH>..<HASH> 100644
--- a/scripts/jenkins-build.py
+++ b/scripts/jenkins-build.py
@@ -14,7 +14,7 @@ bh.vepycall('easy_install', 'coverage')
# have to install dev build of mock using pip directly because of pip bug:
# https://github.com/pypa/pi... | pip is killing Jenkins, again Ok, I don't have mock==dev in the local pypi cache, so I am getting an error. A direct URL should fix this. | py |
diff --git a/chickpea/models.py b/chickpea/models.py
index <HASH>..<HASH> 100644
--- a/chickpea/models.py
+++ b/chickpea/models.py
@@ -39,6 +39,7 @@ class Category(models.Model):
color = models.CharField(max_length=32)
icon = models.ForeignKey(Icon, null=True, blank=True)
preset = models.BooleanField(def... | Add a Category.rank property, and use it as default ordering | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -59,5 +59,6 @@ setup(
]
},
cmdclass=versioneer.get_cmdclass(),
- test_suite="test_runipy"
+ test_suite="test_runipy",
+ zip_safe=True
) | setup.py: Specify that this package is zip safe when installing. | py |
diff --git a/alerta/app/auth.py b/alerta/app/auth.py
index <HASH>..<HASH> 100644
--- a/alerta/app/auth.py
+++ b/alerta/app/auth.py
@@ -180,6 +180,8 @@ def customer_match(user, groups):
else:
match = db.get_customer_by_match([user] + groups)
if match:
+ if match == '*':
+ ... | Use '*' to allow user role to see all customer | py |
diff --git a/vb_suite/test_perf.py b/vb_suite/test_perf.py
index <HASH>..<HASH> 100755
--- a/vb_suite/test_perf.py
+++ b/vb_suite/test_perf.py
@@ -308,10 +308,13 @@ def main():
for b in benchmarks:
b.repeat = args.repeats
- if args.head:
- profile_head(benchmarks)
+ if benchmarks:
+ ... | BLD: test_perf -H shouldn't die if the benchmark list is empty | py |
diff --git a/tests/test_issue30.py b/tests/test_issue30.py
index <HASH>..<HASH> 100644
--- a/tests/test_issue30.py
+++ b/tests/test_issue30.py
@@ -1,15 +1,17 @@
import pickle
import sys
-import six
import pytest
-pytest.importorskip('twisted')
-from twisted.python.failure import Failure
+import six
-from tblib i... | Fix flake8 errors Errors appeared as: tests/test_issue<I>.py:7:1: E<I> module level import not at top of file tests/test_issue<I>.py:9:1: E<I> module level import not at top of file Move the uncertain import into the test function so all top level imports can be at the top of the file. | py |
diff --git a/pygmentify/utils/pygmentify.py b/pygmentify/utils/pygmentify.py
index <HASH>..<HASH> 100644
--- a/pygmentify/utils/pygmentify.py
+++ b/pygmentify/utils/pygmentify.py
@@ -29,25 +29,9 @@ def bits_to_dict(bits):
# Create dictionary by splitting on equal signs
options = dict(bit.split('=') for bit in... | literal eval'd all the things | py |
diff --git a/examples/text-pair/glove_mwe_multipool_predict.py b/examples/text-pair/glove_mwe_multipool_predict.py
index <HASH>..<HASH> 100644
--- a/examples/text-pair/glove_mwe_multipool_predict.py
+++ b/examples/text-pair/glove_mwe_multipool_predict.py
@@ -125,8 +125,8 @@ def main(dataset='quora', width=128, depth=2,... | Let output shape be inferred from data | py |
diff --git a/fsdb/config.py b/fsdb/config.py
index <HASH>..<HASH> 100644
--- a/fsdb/config.py
+++ b/fsdb/config.py
@@ -2,7 +2,7 @@ import json
from utils import calc_dir_mode
-ACCEPTED_HASH_ALG = ['md5', 'sha', 'sha1', 'sha224', 'sha2', 'sha256', 'sha384', 'sha512']
+ACCEPTED_HASH_ALG = ['md5', 'sha1', 'sha224', '... | removed `sha` and `sha2` sha and sha2 are no more suported as hash_alg config value | py |
diff --git a/tests/test_lazy.py b/tests/test_lazy.py
index <HASH>..<HASH> 100644
--- a/tests/test_lazy.py
+++ b/tests/test_lazy.py
@@ -46,14 +46,19 @@ def test_string(value):
def test_list_getitem():
- l = rlp.decode_lazy(rlp.encode([1,2,3]), big_endian_int)
+ l = rlp.decode_lazy(rlp.encode([1, 2, 3]), big_e... | more assertions for slicing | py |
diff --git a/core/dbt/clients/jinja.py b/core/dbt/clients/jinja.py
index <HASH>..<HASH> 100644
--- a/core/dbt/clients/jinja.py
+++ b/core/dbt/clients/jinja.py
@@ -416,7 +416,6 @@ class TestExtension(jinja2.ext.Extension):
test_name = parser.parse_assign_target(name_only=True).name
parser.parse_signa... | don't clobber default args | py |
diff --git a/src/vpnchooser/objects/rule.py b/src/vpnchooser/objects/rule.py
index <HASH>..<HASH> 100644
--- a/src/vpnchooser/objects/rule.py
+++ b/src/vpnchooser/objects/rule.py
@@ -3,7 +3,8 @@
import re
-parse_rule = re.compile('^(?P<ip>[0-9\.a-fA-F]+) (?P<table>[0-9]+)$')
+parse_rule = re.compile('^(?P<ip>[0-9\... | [Backend: Objects] Fixed not checking for a slash in the IP definition for the rule parsing logic (which is necessary due to the netmask being used). | py |
diff --git a/aldryn_apphooks_config/models.py b/aldryn_apphooks_config/models.py
index <HASH>..<HASH> 100644
--- a/aldryn_apphooks_config/models.py
+++ b/aldryn_apphooks_config/models.py
@@ -15,6 +15,8 @@ class AppHookConfig(models.Model):
namespace = models.CharField(max_length=100)
app_data = AppDataField()... | Change the str representation of AppHookConfig by using the related CMSApp name instead of the type | py |
diff --git a/gns3server/version.py b/gns3server/version.py
index <HASH>..<HASH> 100644
--- a/gns3server/version.py
+++ b/gns3server/version.py
@@ -32,6 +32,6 @@ if "dev" in __version__:
import subprocess
if os.path.exists(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", ".git")):
... | Try to fix capsys issue with Python <I> (third try) | py |
diff --git a/ubelt/util_format.py b/ubelt/util_format.py
index <HASH>..<HASH> 100644
--- a/ubelt/util_format.py
+++ b/ubelt/util_format.py
@@ -181,9 +181,9 @@ class _FormatterExtensions(object):
prefix = modname + '.' + class_name + '('
if with_dtype:
- dtype_repr ... | make dtype repr work with older numpy | py |
diff --git a/dpark/context.py b/dpark/context.py
index <HASH>..<HASH> 100644
--- a/dpark/context.py
+++ b/dpark/context.py
@@ -197,7 +197,7 @@ def add_default_options():
help="memory used per task")
group.add_option("-g", "--group", type="string", default="",
help="which group of machines... | change default err to 0, to speedup | py |
diff --git a/cachalot/tests/migrations/0001_initial.py b/cachalot/tests/migrations/0001_initial.py
index <HASH>..<HASH> 100644
--- a/cachalot/tests/migrations/0001_initial.py
+++ b/cachalot/tests/migrations/0001_initial.py
@@ -56,16 +56,16 @@ if django_version[:2] >= (1, 8):
from django.contrib.postgres.fields imp... | Reverts the extensions migration changes in tests. | py |
diff --git a/Lib/fontParts/test/test_lib.py b/Lib/fontParts/test/test_lib.py
index <HASH>..<HASH> 100644
--- a/Lib/fontParts/test/test_lib.py
+++ b/Lib/fontParts/test/test_lib.py
@@ -25,13 +25,6 @@ class TestLib(unittest.TestCase):
for i in value:
self.assertIsInstance(i, basestring)
- def te... | remove noGlyph noFont test because the generic lib doesn't have either | py |
diff --git a/tests/test_decoder.py b/tests/test_decoder.py
index <HASH>..<HASH> 100755
--- a/tests/test_decoder.py
+++ b/tests/test_decoder.py
@@ -21,6 +21,7 @@ DATA_DIR = os.path.join(os.path.dirname(__file__), 'data/')
PDS_DATA_DIR = os.path.join(os.path.dirname(__file__), 'data', 'pds3')
PDS_LABELS = glob.glob(os.... | Expose bug when loading the filepath as a string | py |
diff --git a/pyramid_urireferencer/protected_resources.py b/pyramid_urireferencer/protected_resources.py
index <HASH>..<HASH> 100644
--- a/pyramid_urireferencer/protected_resources.py
+++ b/pyramid_urireferencer/protected_resources.py
@@ -16,7 +16,12 @@ def protected_operation(fn):
'''
Use this decorator to p... | add doc precontions protected_operation | py |
diff --git a/identify/extensions.py b/identify/extensions.py
index <HASH>..<HASH> 100644
--- a/identify/extensions.py
+++ b/identify/extensions.py
@@ -173,6 +173,7 @@ EXTENSIONS = {
'ts': {'text', 'ts'},
'tsx': {'text', 'tsx'},
'ttf': {'binary', 'ttf'},
+ 'txsprofile': {'text', 'ini', 'txsprofile'},
... | Add 'txsprofile'->'ini' to 'extensions.py' `txsprofile` is an `ini` file used by TeXstudio | py |
diff --git a/planet/scripts/item_asset_types.py b/planet/scripts/item_asset_types.py
index <HASH>..<HASH> 100644
--- a/planet/scripts/item_asset_types.py
+++ b/planet/scripts/item_asset_types.py
@@ -18,7 +18,7 @@ DEFAULT_ASSET_TYPES = [
"analytic_b2", "analytic_b3", "analytic_b4", "analytic_b5", "analytic_b6",
... | Update atmcorrected -> analytic_sr | py |
diff --git a/kafka/admin/client.py b/kafka/admin/client.py
index <HASH>..<HASH> 100644
--- a/kafka/admin/client.py
+++ b/kafka/admin/client.py
@@ -334,7 +334,7 @@ class KafkaAdminClient(object):
# DeleteTopicsResponse returns topic_error_codes rather than topic_errors
for topic, error_code in ... | Bugfix: Types need identity comparison `isinstance()` won't work here, as the types require identity comparison. | py |
diff --git a/alexandra/app.py b/alexandra/app.py
index <HASH>..<HASH> 100644
--- a/alexandra/app.py
+++ b/alexandra/app.py
@@ -54,7 +54,7 @@ class Application:
intent_fn = self.intent_map.get(intent, self.unknown_intent_fn)
slots = {
- slot['name']: slot['value']
+ ... | Slot 'value' presence isn't guaranteed | py |
diff --git a/suitable/api.py b/suitable/api.py
index <HASH>..<HASH> 100644
--- a/suitable/api.py
+++ b/suitable/api.py
@@ -97,7 +97,7 @@ class Api(object):
# if the target is the local host but the transport is not set default
# to transport = 'local' as it's usually what you want
if 'connect... | Support ipv6 localhost | py |
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py
index <HASH>..<HASH> 100644
--- a/spyder/app/mainwindow.py
+++ b/spyder/app/mainwindow.py
@@ -1402,7 +1402,13 @@ class MainWindow(QMainWindow):
# Show dialog with missing dependencies
if not running_under_pytest():
- self... | Main Window: Delay computation of missing deps using a timer This avoids making that computation before the window is fully up | py |
diff --git a/klab/bio/ligand.py b/klab/bio/ligand.py
index <HASH>..<HASH> 100644
--- a/klab/bio/ligand.py
+++ b/klab/bio/ligand.py
@@ -108,14 +108,12 @@ class Ligand(object):
l = cls(ligand_code)
l.parse_cif(ligand_info)
l.pdb_id = pdb_id or l.pdb_id
+ has_pdb_id = l.pdb_id and (len(l.... | Fixing a bug where the rain got in. (Hopefully, I need to test it now) | py |
diff --git a/tests/test_engine.py b/tests/test_engine.py
index <HASH>..<HASH> 100644
--- a/tests/test_engine.py
+++ b/tests/test_engine.py
@@ -1,20 +1,26 @@
+import pytest
+
from pipeline_live.engine import LivePipelineEngine
from pipeline_live.data.iex.pricing import USEquityPricing
from pipeline_live.data.iex.clas... | skip this test for now, to work smoothly in ci | py |
diff --git a/salt/client/__init__.py b/salt/client/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/__init__.py
+++ b/salt/client/__init__.py
@@ -134,8 +134,8 @@ class LocalClient(object):
self.opts['transport'],
opts=self.opts,
listen=not self.opts.get('__wor... | Add back functions to client loader Since it is all lazy loaded now this should be safe | py |
diff --git a/MicroTokenizer/__init__.py b/MicroTokenizer/__init__.py
index <HASH>..<HASH> 100644
--- a/MicroTokenizer/__init__.py
+++ b/MicroTokenizer/__init__.py
@@ -15,13 +15,13 @@ current_dir = os.path.dirname(os.path.abspath(__file__))
# dynamic load version from version file
version_file = os.path.join(current... | fix bug of file encoding issue on Windows | py |
diff --git a/planet/api/client.py b/planet/api/client.py
index <HASH>..<HASH> 100644
--- a/planet/api/client.py
+++ b/planet/api/client.py
@@ -72,10 +72,11 @@ class _Base(object):
:param str credentials: password
:returns: JSON object (Python dict)
'''
- result = self.dispatcher.sessio... | set login headers as content-type:application/json during planet init | py |
diff --git a/plenum/server/plugin/stats_consumer/stats_publisher.py b/plenum/server/plugin/stats_consumer/stats_publisher.py
index <HASH>..<HASH> 100644
--- a/plenum/server/plugin/stats_consumer/stats_publisher.py
+++ b/plenum/server/plugin/stats_consumer/stats_publisher.py
@@ -25,9 +25,11 @@ class StatsPublisher:
... | Fixed Bug: Monitor does not reconnect to tcp port | py |
diff --git a/notifications/tests/urls.py b/notifications/tests/urls.py
index <HASH>..<HASH> 100644
--- a/notifications/tests/urls.py
+++ b/notifications/tests/urls.py
@@ -1,13 +1,15 @@
+''' Django notification urls for tests '''
# -*- coding: utf-8 -*-
-from distutils.version import StrictVersion
+from distutils.versi... | Improve code quality of tests/urls.py | py |
diff --git a/tests/test_assets.py b/tests/test_assets.py
index <HASH>..<HASH> 100644
--- a/tests/test_assets.py
+++ b/tests/test_assets.py
@@ -1,7 +1,8 @@
# -*- coding: utf-8 -*-
import unittest
-from coaster.assets import Version, VersionedAssets, AssetNotFound
+import six
+from coaster.assets import Version, Vers... | Tests for Coaster's UglipyJS filter. | py |
diff --git a/libplanarradpy/planrad.py b/libplanarradpy/planrad.py
index <HASH>..<HASH> 100644
--- a/libplanarradpy/planrad.py
+++ b/libplanarradpy/planrad.py
@@ -572,7 +572,7 @@ class BatchRun():
self.run_params.write_sky_params_to_file()
#if not os.path.isfile(inp_file):
# lg... | Updated the logging details to help find bug | py |
diff --git a/metpy/calc/turbulence.py b/metpy/calc/turbulence.py
index <HASH>..<HASH> 100644
--- a/metpy/calc/turbulence.py
+++ b/metpy/calc/turbulence.py
@@ -34,7 +34,13 @@ def get_perturbation(ts, axis=-1):
"""
slices = [slice(None)] * ts.ndim
slices[axis] = None
- return ts - ts.mean(axis=axis)[sli... | Fix get_perturbation on numpy <I> Apparently mean was returning a scalar when it could, so make sure we at least have a 1D array. | py |
diff --git a/pyhocon/config_parser.py b/pyhocon/config_parser.py
index <HASH>..<HASH> 100644
--- a/pyhocon/config_parser.py
+++ b/pyhocon/config_parser.py
@@ -506,7 +506,7 @@ class ConfigTreeParser(TokenConverter):
elif len(tokens) == 2:
values = tokens[1:]
else:
-... | Fixed Python <I> incompatible format string pyhocon officially supports Python <I>, so it can't use the {} syntax in format strings ([which was added in <I>](<URL>. | py |
diff --git a/stripy-src/stripy/spherical.py b/stripy-src/stripy/spherical.py
index <HASH>..<HASH> 100755
--- a/stripy-src/stripy/spherical.py
+++ b/stripy-src/stripy/spherical.py
@@ -1075,7 +1075,7 @@ class sTriangulation(object):
def join(self, t2, unique=False):
"""
Join this triangulation with... | Minor pathes to documentation and functions Correct an error in the great_circle_Npoints function, normalizing the xyzN vectors before converting back to lonlat | py |
diff --git a/test/unit/operations/third_party/juniper/test_rpc.py b/test/unit/operations/third_party/juniper/test_rpc.py
index <HASH>..<HASH> 100644
--- a/test/unit/operations/third_party/juniper/test_rpc.py
+++ b/test/unit/operations/third_party/juniper/test_rpc.py
@@ -168,7 +168,7 @@ class TestRPC(unittest.TestCase):... | Juniper test_rpc: string based payloads must contain proper XML | py |
diff --git a/discord/audit_logs.py b/discord/audit_logs.py
index <HASH>..<HASH> 100644
--- a/discord/audit_logs.py
+++ b/discord/audit_logs.py
@@ -326,7 +326,10 @@ class AuditLogEntry:
}
obj = Invite(state=self._state, data=fake_payload)
- obj.inviter = changeset.inviter
+ try:
+ ... | Don't assume the inviter is always there. | py |
diff --git a/c7n/resources/quotas.py b/c7n/resources/quotas.py
index <HASH>..<HASH> 100644
--- a/c7n/resources/quotas.py
+++ b/c7n/resources/quotas.py
@@ -43,7 +43,7 @@ class ServiceQuota(QueryResourceManager):
class resource_type(TypeInfo):
service = 'service-quotas'
permission_prefix = 'service... | aws - service-quota - list services in larger batches to avoid throttling (#<I>) | py |
diff --git a/tests/test_cli.py b/tests/test_cli.py
index <HASH>..<HASH> 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -211,6 +211,12 @@ def test_status_json(pyscript):
script.run('stop')
+ result = script.run('status', '--json')
+ assert result.returncode == 1
+ status = json.loads(result.... | Add test for getting JSON status of dead process | py |
diff --git a/molmod/log.py b/molmod/log.py
index <HASH>..<HASH> 100644
--- a/molmod/log.py
+++ b/molmod/log.py
@@ -327,6 +327,12 @@ class ScreenLog(object):
self.unitsys.log_info()
def print_header(self):
+ # Suppress any logging as soon as an exception is not caught.
+ def excepthook_... | Stop logging after uncaught exception | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ setup(name='sdu_bkjws',
packages=find_packages('sdu_bkjws', exclude=['tests']),
- long_description=open('README.md', 'r', encoding='utf-8').read(),
+ long_description=open('readme.md', '... | fix(setup): File name case insensitive in windows | py |
diff --git a/openquake/calculators/getters.py b/openquake/calculators/getters.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/getters.py
+++ b/openquake/calculators/getters.py
@@ -481,8 +481,8 @@ class RuptureGetter(object):
[self.grp_id] = numpy.unique(rup_array['grp_id'])
def __iter__(self)... | Small renaming [skip CI] | py |
diff --git a/hydra_base/lib/project.py b/hydra_base/lib/project.py
index <HASH>..<HASH> 100644
--- a/hydra_base/lib/project.py
+++ b/hydra_base/lib/project.py
@@ -298,21 +298,15 @@ def get_project_by_network_id(network_id, **kwargs):
"""
user_id = kwargs.get('user_id')
- projects_i = db.DBSession.query(P... | Simplify the 'get project by network id' function | py |
diff --git a/zoort.py b/zoort.py
index <HASH>..<HASH> 100644
--- a/zoort.py
+++ b/zoort.py
@@ -719,9 +719,8 @@ def optional_actions(encrypt, path, compress_file, **kwargs):
yes = ('y', 'Y')
file_to_upload = normalize_path(path) + compress_file[1]
if encrypt in yes:
- encrypt_file(normalize_path(pa... | Remove normalize_path in optional actions | py |
diff --git a/pyquil/api.py b/pyquil/api.py
index <HASH>..<HASH> 100644
--- a/pyquil/api.py
+++ b/pyquil/api.py
@@ -315,7 +315,7 @@ class JobConnection(object):
:return: The current version of the QVM.
:rtype: string
"""
- raise DeprecationWarning, "Version checks have been deprecated."... | bugfix in warning syntax to make python3 compatible | py |
diff --git a/parsers/python/tests/__init__.py b/parsers/python/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/parsers/python/tests/__init__.py
+++ b/parsers/python/tests/__init__.py
@@ -16,4 +16,5 @@ print(f"***** git test branch: {git_branch}*****\n")
# k = 'abfrtvn\\"\''.find(ch)
# ... | Tied rdflib tests to rdflib version | py |
diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py
index <HASH>..<HASH> 100644
--- a/python/ccxt/base/exchange.py
+++ b/python/ccxt/base/exchange.py
@@ -663,7 +663,7 @@ class Exchange(object):
@staticmethod
def parse_date(timestamp):
if 'GMT' in timestamp:
- string = ... | removed excessive spacing from exchange.py for PEP8 | py |
diff --git a/codenerix/__init__.py b/codenerix/__init__.py
index <HASH>..<HASH> 100644
--- a/codenerix/__init__.py
+++ b/codenerix/__init__.py
@@ -1,4 +1,4 @@
-__version__ = "1.0.15"
+__version__ = "1.0.16"
__authors__ = [
'Juan Miguel Taboada Godoy <juanmi@juanmitaboada.com>', | New version published to PYPY | py |
diff --git a/galpy/potential/amuse.py b/galpy/potential/amuse.py
index <HASH>..<HASH> 100644
--- a/galpy/potential/amuse.py
+++ b/galpy/potential/amuse.py
@@ -14,7 +14,7 @@ class galpy_profile(LiteratureReferencesMixIn):
"""
User-defined potential from GALPY
- .. [#] Bovy, J; ApJSS, Volume 216, Issue... | Update literature reference to be more consistent with AMUSE versions | py |
diff --git a/profiling/fine_timer.py b/profiling/fine_timer.py
index <HASH>..<HASH> 100644
--- a/profiling/fine_timer.py
+++ b/profiling/fine_timer.py
@@ -72,8 +72,12 @@ def fixed_point_timer(project, project_file):
analysis_filename = '../pyt/reaching_definitions_taint.py'
list_of_functions = ['arrow', 'join... | Added fixed point runner method so it is not only reaching definitions taint analysis | py |
diff --git a/salt/modules/win_lgpo.py b/salt/modules/win_lgpo.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_lgpo.py
+++ b/salt/modules/win_lgpo.py
@@ -2712,7 +2712,7 @@ def _processPolicyDefinitions(policy_def_path='c:\\Windows\\PolicyDefinitions',
parser = lxml.etree.XMLParser(remove_comments=... | narrow except for XML Syntax Error on admx file | py |
diff --git a/zstandard/backend_cffi.py b/zstandard/backend_cffi.py
index <HASH>..<HASH> 100644
--- a/zstandard/backend_cffi.py
+++ b/zstandard/backend_cffi.py
@@ -2769,7 +2769,7 @@ def train_dictionary(
are available in the paper *Effective Construction of Relative Lempel-Ziv
Dictionaries* (authors: Liao, Pet... | doc: fix train_dictionary reST syntax Closes #<I>. | py |
diff --git a/src/Exscript/parselib/Lexer.py b/src/Exscript/parselib/Lexer.py
index <HASH>..<HASH> 100644
--- a/src/Exscript/parselib/Lexer.py
+++ b/src/Exscript/parselib/Lexer.py
@@ -182,5 +182,4 @@ class Lexer(object):
def parse_file(self, filename):
with open(filename) as fp:
- string = fp.... | exscript: refactoring: Simplified some code in Lexer. | py |
diff --git a/fbchat/_threads/_abc.py b/fbchat/_threads/_abc.py
index <HASH>..<HASH> 100644
--- a/fbchat/_threads/_abc.py
+++ b/fbchat/_threads/_abc.py
@@ -116,8 +116,14 @@ class ThreadABC(metaclass=abc.ABCMeta):
reply_to_id: Optional message to reply to
Example:
+ Send a message with ... | Add example of replying to a message | py |
diff --git a/s3conf/files.py b/s3conf/files.py
index <HASH>..<HASH> 100644
--- a/s3conf/files.py
+++ b/s3conf/files.py
@@ -70,12 +70,17 @@ class File:
edited_data = editor.edit(filename=f.name)
if edited_data != original_data:
- self.storage.write(io.BytesIO(edited_data), self.name)
+... | using class method to write, create EnvFile from File | py |
diff --git a/allennlp/commands/serve.py b/allennlp/commands/serve.py
index <HASH>..<HASH> 100644
--- a/allennlp/commands/serve.py
+++ b/allennlp/commands/serve.py
@@ -7,15 +7,13 @@ their predictions.
.. code-block:: bash
$ python -m allennlp.run serve --help
- usage: run [command] serve [-h] [--port PORT] [-... | Removed unsupported arguments from comment. (#<I>) * Removed unsupported arguments from comment. * Remove redundant "[command]" | py |
diff --git a/tests/_s.py b/tests/_s.py
index <HASH>..<HASH> 100644
--- a/tests/_s.py
+++ b/tests/_s.py
@@ -79,10 +79,6 @@ class TestSpamdHandler(StreamRequestHandler):
def do_HEADERS(self):
"""Emulate HEADERS"""
- headers = []
- for header in self.headers:
- headers.append("%s: ... | FIX: Remove dead code from tests | py |
diff --git a/keyring/backend.py b/keyring/backend.py
index <HASH>..<HASH> 100644
--- a/keyring/backend.py
+++ b/keyring/backend.py
@@ -66,7 +66,7 @@ class KeyringBackend(metaclass=KeyringBackendMeta):
def viable(cls):
with errors.ExceptionRaisedContext() as exc:
cls.priority
- return n... | not implies bool. implicit is better than explicit. | py |
diff --git a/pdkit/finger_tapping_time_series.py b/pdkit/finger_tapping_time_series.py
index <HASH>..<HASH> 100644
--- a/pdkit/finger_tapping_time_series.py
+++ b/pdkit/finger_tapping_time_series.py
@@ -7,6 +7,7 @@
# Author(s): J.S. Pons
import logging
+import sys
from pdkit.utils import load_data
import pandas_v... | adds exceptions for finger tapping time series | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,4 +14,6 @@ setup(name="python-pyqt5-hexview",
url="https://github.com/williballenthin/python-pyqt5-hexview",
license="Apache 2.0 License",
install_depends=["hexdump"],
- packages=["hexview"])
+ ... | add ui file to setup.py | py |
diff --git a/modules/miscutil/lib/invenio_connector.py b/modules/miscutil/lib/invenio_connector.py
index <HASH>..<HASH> 100644
--- a/modules/miscutil/lib/invenio_connector.py
+++ b/modules/miscutil/lib/invenio_connector.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
## This file is part of Invenio.
-## Copyright (C) 2... | global: fix ^H^H characters in copyright notices * Remove ^H^H characters that appeared in copyright notices as a result of the previous commit (<I>d<I>ae<I>a<I>f<I>d<I>e<I>f<I>cbce). Thanks to Jay Luker for reporting the problem. | py |
diff --git a/pmag_basic_dialogs.py b/pmag_basic_dialogs.py
index <HASH>..<HASH> 100755
--- a/pmag_basic_dialogs.py
+++ b/pmag_basic_dialogs.py
@@ -2726,6 +2726,8 @@ class check(wx.Frame):
old_site, new_site = change
samples = self.Data_hierarchy['sites'].pop(old_site)
location = s... | fix so that you can select "" for a new location name | py |
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/parallel.py
+++ b/openquake/baselib/parallel.py
@@ -591,7 +591,7 @@ class Starmap(object):
return IterResult([fut], self.name, self.num_tasks)
elif self.distribute == 'z... | Fixed so that the number of bytes sent to the workers is stored [skip CI] Former-commit-id: c<I>f<I>ac7c5eebf<I>c<I>b<I>a9a8c<I>a<I>e | py |
diff --git a/astroid/__pkginfo__.py b/astroid/__pkginfo__.py
index <HASH>..<HASH> 100644
--- a/astroid/__pkginfo__.py
+++ b/astroid/__pkginfo__.py
@@ -25,7 +25,6 @@ install_requires = [
"lazy_object_proxy",
"six",
"wrapt",
- 'typing;python_version<"3.5"',
'typed-ast<1.3.0;implementation_name== "c... | Remove typing dependency which is no longer needed | py |
diff --git a/digSparkUtil/fileUtil.py b/digSparkUtil/fileUtil.py
index <HASH>..<HASH> 100644
--- a/digSparkUtil/fileUtil.py
+++ b/digSparkUtil/fileUtil.py
@@ -10,6 +10,7 @@ from dictUtil import as_dict, merge_dicts
import urllib
import jq
from itertools import izip
+from logUtil import logging
# for manifest intros... | now load_file mentions number of elements loaded | py |
diff --git a/gala/potential/potential/tests/test_interop_galpy.py b/gala/potential/potential/tests/test_interop_galpy.py
index <HASH>..<HASH> 100644
--- a/gala/potential/potential/tests/test_interop_galpy.py
+++ b/gala/potential/potential/tests/test_interop_galpy.py
@@ -31,6 +31,9 @@ def pytest_generate_tests(metafunc)... | skip tests if galpy not installed | py |
diff --git a/test/test_clean_sched_queues.py b/test/test_clean_sched_queues.py
index <HASH>..<HASH> 100755
--- a/test/test_clean_sched_queues.py
+++ b/test/test_clean_sched_queues.py
@@ -66,7 +66,18 @@ class TestSchedCleanQueues(ShinkenTest):
self.assert_(len(self.sched.actions) < 30)
#Now for Notif... | Add :test about deleting too much notifications. | py |
diff --git a/matgendb/builders/core.py b/matgendb/builders/core.py
index <HASH>..<HASH> 100644
--- a/matgendb/builders/core.py
+++ b/matgendb/builders/core.py
@@ -14,6 +14,10 @@ from abc import ABCMeta, abstractmethod
import copy
import logging
import multiprocessing
+try:
+ import Queue
+except ImportError:
+ ... | fix: restore import, with py3 compat | py |
diff --git a/asn1crypto/core.py b/asn1crypto/core.py
index <HASH>..<HASH> 100644
--- a/asn1crypto/core.py
+++ b/asn1crypto/core.py
@@ -101,7 +101,7 @@ METHOD_NUM_TO_NAME_MAP = {
}
-_OID_RE = re.compile('^\d+(\.\d+)*$')
+_OID_RE = re.compile(r'^\d+(\.\d+)*$')
# A global tracker to ensure that _setup() is calle... | Fixing deprecation warning from python <I> (#<I>) | py |
diff --git a/registration/tests.py b/registration/tests.py
index <HASH>..<HASH> 100644
--- a/registration/tests.py
+++ b/registration/tests.py
@@ -112,8 +112,13 @@ class RegistrationModelTests(RegistrationTestCase):
``False`` otherwise.
"""
+ # Unexpired user returns False.
s... | Add some comments to make this a bit easier to follow. | py |
diff --git a/src/rezplugins/__init__.py b/src/rezplugins/__init__.py
index <HASH>..<HASH> 100644
--- a/src/rezplugins/__init__.py
+++ b/src/rezplugins/__init__.py
@@ -1,2 +0,0 @@
-from rez.plugin_managers import extend_path
-__path__ = extend_path(__path__, __name__)
\ No newline at end of file | rezplugins: No need to expand the search __path__ directly under rezplugins, because it contains the complete, static list of plugin types: these cannot be added to by end users. | py |
diff --git a/rstcheck.py b/rstcheck.py
index <HASH>..<HASH> 100755
--- a/rstcheck.py
+++ b/rstcheck.py
@@ -83,6 +83,8 @@ RSTCHECK_COMMENT_RE = re.compile(r'\.\. rstcheck:')
# This is for the cases where code in a readme uses includes in that directory.
INCLUDE_FLAGS = ['-I.', '-I..']
+CONFIG_FILES = ['.rstcheck.cfg... | Allow configuration to be in setup.cfg (#<I>) Added possibility to write configuration to a setup.cfg file Added a variable containing the config files possibilities (still possible to add more) Closes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,6 +11,16 @@ setup(
author_email='oscm@edx.org',
license='Apache',
+ classifiers=[
+ "Environment :: Console",
+ "Intended Audience :: Developers",
+ "License :: OSI Approved :: Apache So... | Properly label ourselves for PyPI | py |
diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/client.py
+++ b/pyrogram/client/client.py
@@ -26,6 +26,8 @@ import time
from collections import namedtuple
from configparser import ConfigParser
from hashlib import sha256, md5
+from signal import sig... | Add idle mechanism to gently stop the program | py |
diff --git a/pycm/pycm_obj.py b/pycm/pycm_obj.py
index <HASH>..<HASH> 100644
--- a/pycm/pycm_obj.py
+++ b/pycm/pycm_obj.py
@@ -222,6 +222,7 @@ class ConfusionMatrix():
self.PValue = self.overall_stat["P-Value"]
self.Overall_CEN = self.overall_stat["Overall_CEN"]
self.Overall_MCEN = self.overa... | fix : Overall_MCC added to object #<I> | py |
diff --git a/taxi/__init__.py b/taxi/__init__.py
index <HASH>..<HASH> 100644
--- a/taxi/__init__.py
+++ b/taxi/__init__.py
@@ -1 +1 @@
-__version__ = '3.0-beta1'
+__version__ = '3.0-beta2' | set version to <I>-beta2 | py |
diff --git a/wooey/tests/scripts/fetch_cats.py b/wooey/tests/scripts/fetch_cats.py
index <HASH>..<HASH> 100755
--- a/wooey/tests/scripts/fetch_cats.py
+++ b/wooey/tests/scripts/fetch_cats.py
@@ -28,7 +28,7 @@ def main():
searchTerm = 'kittens' if args.kittens else 'cats'
cat_count = args.count if args.count <... | Fixes to the all important cat fetcher | py |
diff --git a/plaso/multi_processing/psort.py b/plaso/multi_processing/psort.py
index <HASH>..<HASH> 100644
--- a/plaso/multi_processing/psort.py
+++ b/plaso/multi_processing/psort.py
@@ -205,6 +205,8 @@ class PsortMultiProcessEngine(multi_process_engine.MultiProcessEngine):
_QUEUE_TIMEOUT = 10 * 60
+ _HEAP_MAXI... | Added limit in psort for events with the same timestamp #<I> (#<I>) | py |
diff --git a/uncompyle6/parsers/parse3.py b/uncompyle6/parsers/parse3.py
index <HASH>..<HASH> 100644
--- a/uncompyle6/parsers/parse3.py
+++ b/uncompyle6/parsers/parse3.py
@@ -56,13 +56,6 @@ class Python3Parser(PythonParser):
# See also common Python p_list_comprehension
"""
- def p_setcomp3(self,... | Remove the JUMP_ABSOLUTE in comp_for altogether Supposition is this was added as a result of a bug in my code from earlier. If we find we need it, we'll add it back again. | py |
diff --git a/paramiko/client.py b/paramiko/client.py
index <HASH>..<HASH> 100644
--- a/paramiko/client.py
+++ b/paramiko/client.py
@@ -186,6 +186,12 @@ class SSHClient (object):
@raise IOError: if the file could not be written
"""
+
+ # update local host keys from file (in case other SSH clie... | Load host entries from the known_hosts file(s) before writing the file from RAM to disk. Avoids loss of host entries in case other SSH clients have written to the known_hosts file(s) meanwhile. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,10 +1,18 @@
#!/usr/bin/env python
import shutil
-import os
+import os, sys
import os.path as op
from distutils.command.clean import clean
+import numpy
from numpy.distutils.command.build_ext import build_ext as numpy_b... | NumPy <I> is strictly needed. | py |
diff --git a/oscrypto/_openssl/tls.py b/oscrypto/_openssl/tls.py
index <HASH>..<HASH> 100644
--- a/oscrypto/_openssl/tls.py
+++ b/oscrypto/_openssl/tls.py
@@ -441,7 +441,7 @@ class TLSSocket(object):
error = libssl.SSL_get_error(ssl, result)
if error == LibsslConst.SSL_ERROR_WANT_READ:... | Handle socket timeouts for handshakes in tls.TLSSocket() on Linux/BSD | py |
diff --git a/assets/shutit_module_template_bare.py b/assets/shutit_module_template_bare.py
index <HASH>..<HASH> 100644
--- a/assets/shutit_module_template_bare.py
+++ b/assets/shutit_module_template_bare.py
@@ -1,5 +1,4 @@
"""ShutIt module. See http://shutit.tk
-In source, line 11 should be blank, within the build def... | comment removed - line <I> must be blank | py |
diff --git a/scrubadub/detectors/spacy.py b/scrubadub/detectors/spacy.py
index <HASH>..<HASH> 100644
--- a/scrubadub/detectors/spacy.py
+++ b/scrubadub/detectors/spacy.py
@@ -154,7 +154,7 @@ class SpacyEntityDetector(Detector):
if model not in models:
msg.info("Downloading spacy model {}".format(m... | fixed reload statement and replaced with import | py |
diff --git a/dirutility/ftp.py b/dirutility/ftp.py
index <HASH>..<HASH> 100644
--- a/dirutility/ftp.py
+++ b/dirutility/ftp.py
@@ -83,3 +83,23 @@ class FTP:
def set_verbosity(self, level):
"""Set the instance’s debugging level, controls the amount of debugging output printed."""
self.session.set_... | ADD listdir method for returning a list of files and directories | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.