diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/redis/client.py b/redis/client.py index <HASH>..<HASH> 100644 --- a/redis/client.py +++ b/redis/client.py @@ -713,6 +713,8 @@ class Redis(threading.local): If timeout is 0, then block indefinitely. """ + if timeout is None: + timeout = 0 if isinstance(keys, ba...
timeout of None to the brpop/blpop is the same as timeout=0
py
diff --git a/versions/admin.py b/versions/admin.py index <HASH>..<HASH> 100644 --- a/versions/admin.py +++ b/versions/admin.py @@ -26,6 +26,7 @@ class DateTimeForm(forms.Form): self.request = request self.fields['%s_as_of' % field_name] = forms.SplitDateTimeField( label='', + i...
<I> hour time and HH:MM am/pm are usable in the filter
py
diff --git a/normality/encoding.py b/normality/encoding.py index <HASH>..<HASH> 100644 --- a/normality/encoding.py +++ b/normality/encoding.py @@ -25,7 +25,9 @@ def normalize_encoding(encoding, default=DEFAULT_ENCODING): def normalize_result(result, default, threshold=0.2): """Interpret a chardet result.""" - ...
Can't compare None with arithmatic types on Python3
py
diff --git a/playhouse/tests.py b/playhouse/tests.py index <HASH>..<HASH> 100644 --- a/playhouse/tests.py +++ b/playhouse/tests.py @@ -15,10 +15,10 @@ class BaseSignalModel(signals.Model): database = db class ModelA(BaseSignalModel): - a = CharField() + a = CharField(default='') class ModelB(BaseSi...
Fixing failing playhouse tests due to change in #<I>
py
diff --git a/armstrong/core/arm_access/tests/widgets.py b/armstrong/core/arm_access/tests/widgets.py index <HASH>..<HASH> 100644 --- a/armstrong/core/arm_access/tests/widgets.py +++ b/armstrong/core/arm_access/tests/widgets.py @@ -86,6 +86,19 @@ class AccessWidgetTestCase(ArmAccessTestCase): self.assertFalse(c...
Add test to explicitly verify int behavior Since we can't be sure which DB is in use, this makes sure we test both in addition to whatever's provided by the DB.
py
diff --git a/ambry/library/warehouse/backends/postgresql.py b/ambry/library/warehouse/backends/postgresql.py index <HASH>..<HASH> 100644 --- a/ambry/library/warehouse/backends/postgresql.py +++ b/ambry/library/warehouse/backends/postgresql.py @@ -75,14 +75,10 @@ class PostgreSQLBackend(DatabaseBackend): co...
Do not set name of the index for postgres. #<I>.
py
diff --git a/astroid/bases.py b/astroid/bases.py index <HASH>..<HASH> 100644 --- a/astroid/bases.py +++ b/astroid/bases.py @@ -442,7 +442,7 @@ class BoundMethod(UnboundMethod): needs to be a tuple of classes """ # pylint: disable=import-outside-toplevel; circular import - from astroid....
Import from astroid.nodes directly Sometime it's already possible. see <URL>
py
diff --git a/xblock/fields.py b/xblock/fields.py index <HASH>..<HASH> 100644 --- a/xblock/fields.py +++ b/xblock/fields.py @@ -8,9 +8,6 @@ storage mechanism is. import copy from collections import namedtuple -UNSET = object() - - class BlockScope(object): """Enumeration defining BlockScopes""" USAGE, DEF...
Use Sentinels for sentinels, it helps debugging.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ tests_require = [ setup(name="tweepy", version=version, - description="Twitter library for python", + description="Twitter library for Python", license="MIT", author="Joshua Roe...
Capitalize Python in setup.py description
py
diff --git a/airflow/configuration.py b/airflow/configuration.py index <HASH>..<HASH> 100644 --- a/airflow/configuration.py +++ b/airflow/configuration.py @@ -266,7 +266,7 @@ filter_by_owner = False email_backend = airflow.utils.email.send_email_smtp [smtp] -# If you want airflow to send emails on retries, failure,...
Add a missing word to docs
py
diff --git a/tests/unit/utils/vt_test.py b/tests/unit/utils/vt_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/utils/vt_test.py +++ b/tests/unit/utils/vt_test.py @@ -25,8 +25,10 @@ from salt.utils import vt class VTTestCase(TestCase): + def test_vt_size(self): '''Confirm that the terminal size i...
Disable the VT test, the code ain't mature enough.
py
diff --git a/src/python/dxpy/utils/resolver.py b/src/python/dxpy/utils/resolver.py index <HASH>..<HASH> 100644 --- a/src/python/dxpy/utils/resolver.py +++ b/src/python/dxpy/utils/resolver.py @@ -235,7 +235,7 @@ def resolve_container_id_or_name(raw_string, is_error=False, unescape=True, mult return ([cached_pro...
bugfix (fixing findProjects incompatibility when projects are both public and you have explicit permissions)
py
diff --git a/slither/solc_parsing/expressions/expression_parsing.py b/slither/solc_parsing/expressions/expression_parsing.py index <HASH>..<HASH> 100644 --- a/slither/solc_parsing/expressions/expression_parsing.py +++ b/slither/solc_parsing/expressions/expression_parsing.py @@ -763,4 +763,13 @@ def parse_expression(exp...
Add partial support of array slices (fix #<I>)
py
diff --git a/netpyne/utils.py b/netpyne/utils.py index <HASH>..<HASH> 100644 --- a/netpyne/utils.py +++ b/netpyne/utils.py @@ -109,7 +109,10 @@ def getGlobals (mechNames, origGlob={}): def setGlobals (glob): for k,v in glob.iteritems(): - setattr(h, k, v) + try: + setattr(h, k, v) + ...
added try except to setting globals during import to avoid errors with v_init
py
diff --git a/django_extensions/management/commands/sync_s3.py b/django_extensions/management/commands/sync_s3.py index <HASH>..<HASH> 100644 --- a/django_extensions/management/commands/sync_s3.py +++ b/django_extensions/management/commands/sync_s3.py @@ -174,7 +174,7 @@ class Command(BaseCommand): @signalcommand ...
clearify warning and use CommandError instead of ImportError
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -55,6 +55,7 @@ class CustomEggInfo(egg_info): def convert_to_py2(): + global PY2_CONVERTED if source_dir == 'python2_source' and not PY2_CONVERTED: try: # Check if 3to2 exists @@ -72,7 +73,6 ...
Setup.py: Move global statement to start of function to fix setup for py<I>+
py
diff --git a/benchbuild/source/git.py b/benchbuild/source/git.py index <HASH>..<HASH> 100644 --- a/benchbuild/source/git.py +++ b/benchbuild/source/git.py @@ -73,14 +73,14 @@ class Git(base.BaseSource): """ src_loc = self.fetch() tgt_loc = local.path(target_dir) / self.local - lock_fil...
sources: git should create a fresh clone instead of a workingtree
py
diff --git a/algoliasearch/client.py b/algoliasearch/client.py index <HASH>..<HASH> 100644 --- a/algoliasearch/client.py +++ b/algoliasearch/client.py @@ -499,11 +499,16 @@ class Client(object): method, 'https://%s%s' % (host, path), params=params, data=body, ti...
Continue the retry in case of <I> and catch SSL Errors
py
diff --git a/doc2dash/parsers/base.py b/doc2dash/parsers/base.py index <HASH>..<HASH> 100644 --- a/doc2dash/parsers/base.py +++ b/doc2dash/parsers/base.py @@ -13,15 +13,20 @@ log = logging.getLogger(__name__) Entry = namedtuple('Entry', ['name', 'type', 'anchor']) -def coroutine(func): - def start(*args, **kwar...
Create version specific coroutine decorators Don't check the Python version on each iteration. I haven't measured whether it makes any difference performance-wise but it sure is less ugly.
py
diff --git a/torchvision/datasets/utils.py b/torchvision/datasets/utils.py index <HASH>..<HASH> 100644 --- a/torchvision/datasets/utils.py +++ b/torchvision/datasets/utils.py @@ -10,7 +10,7 @@ def check_integrity(fpath, md5): md5o = hashlib.md5() with open(fpath, 'rb') as f: # read in 1MB chunks - ...
Fixing the issue reading 1GB chunk when calculating md5 (#<I>) According to the comment, this should be 1MB which is <I>*<I> bytes.
py
diff --git a/src/python/pants/help/help_printer.py b/src/python/pants/help/help_printer.py index <HASH>..<HASH> 100644 --- a/src/python/pants/help/help_printer.py +++ b/src/python/pants/help/help_printer.py @@ -52,7 +52,8 @@ class HelpPrinter: for scope_info in self._options.known_scope_to_info.values(): if...
Handle blank description in _print_goals_help (#<I>) If there is no description for a scope_info goal, print out a message to this effect associated with that goal rather than just a blank line.
py
diff --git a/auditpool/run_audit.py b/auditpool/run_audit.py index <HASH>..<HASH> 100644 --- a/auditpool/run_audit.py +++ b/auditpool/run_audit.py @@ -27,7 +27,8 @@ LOGGER_KNOWN_EXCEPTIONS = (AttributeError, KeyError, ValueError, IOErro...
pcp-<I> - need typeerror since we don't guarantee document[TS] is positive int
py
diff --git a/visidata/cmdlog.py b/visidata/cmdlog.py index <HASH>..<HASH> 100644 --- a/visidata/cmdlog.py +++ b/visidata/cmdlog.py @@ -142,7 +142,7 @@ class _CommandLog: self.afterExecSheet(sheet, False, '') colname, rowname, sheetname = '', '', None - if sheet and not cmd.longname.starts...
[cmdlog] record sheet + col information for open-row
py
diff --git a/bin/analyzecrl.py b/bin/analyzecrl.py index <HASH>..<HASH> 100644 --- a/bin/analyzecrl.py +++ b/bin/analyzecrl.py @@ -73,4 +73,4 @@ for crl in os.listdir(args.d): for revoked in crlp.get_revoked(): o['revoked'].append({'serial':revoked.get_serial(), 'rev_date':revoked.get_rev_date(), ...
Encoding issue with JSON dumps
py
diff --git a/patroni/dcs/consul.py b/patroni/dcs/consul.py index <HASH>..<HASH> 100644 --- a/patroni/dcs/consul.py +++ b/patroni/dcs/consul.py @@ -91,6 +91,8 @@ class HTTPClient(object): data = '{' + ttl + '}' else: data = data[:-1] + ', ' + ttl + '}' + ...
Convert query params from list to dict (#<I>) Patroni is relying on params to determinte timeout and amount of retries when executing api requests to consul. Starting from <I> python-consul changed internal API and started using `list` instead of `dict` to pass query parameters. Such change broke "watch" functionalit...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -46,6 +46,7 @@ try: version=VERSION, description='The SolveBio Python client', long_description=long_description, + long_description_content_type='text/markdown', author='Solve, Inc.'...
set long_description to markdown for PyPI
py
diff --git a/pytds/__init__.py b/pytds/__init__.py index <HASH>..<HASH> 100644 --- a/pytds/__init__.py +++ b/pytds/__init__.py @@ -400,9 +400,6 @@ class Connection(object): return raise - def __del__(self): - self.close() - def close(self): """ Close connection to...
removed __del__ from Cursor and Connection, causing memory leak See Issue #<I>
py
diff --git a/raiden/tests/integration/network/transport/test_matrix_transport.py b/raiden/tests/integration/network/transport/test_matrix_transport.py index <HASH>..<HASH> 100644 --- a/raiden/tests/integration/network/transport/test_matrix_transport.py +++ b/raiden/tests/integration/network/transport/test_matrix_transp...
Fix test_matrix_invite_private_room_unhappy_case_3 flakyness The test must wait for the initial mutual healthcheck to update the reachability state to reliably perform the actual test. Fixes: #<I>
py
diff --git a/abilian/services/security/service.py b/abilian/services/security/service.py index <HASH>..<HASH> 100644 --- a/abilian/services/security/service.py +++ b/abilian/services/security/service.py @@ -166,6 +166,8 @@ class SecurityService(Service): # and we should not attach this object to the other sessio...
make sure a securiy audit has a manager set
py
diff --git a/charmhelpers/contrib/openstack/utils.py b/charmhelpers/contrib/openstack/utils.py index <HASH>..<HASH> 100644 --- a/charmhelpers/contrib/openstack/utils.py +++ b/charmhelpers/contrib/openstack/utils.py @@ -14,7 +14,6 @@ from charmhelpers.core.hookenv import ( config, log as juju_log, charm_d...
fixed lint issue in openstack.utils
py
diff --git a/test/datasets/test_qqp.py b/test/datasets/test_qqp.py index <HASH>..<HASH> 100644 --- a/test/datasets/test_qqp.py +++ b/test/datasets/test_qqp.py @@ -18,7 +18,6 @@ def _get_mock_dataset(root_dir): file_name = "quora_duplicate_questions.tsv" txt_file = os.path.join(base_dir, file_name) mocked...
Delete prints in test_qqp.py (#<I>)
py
diff --git a/tests/test_utils.py b/tests/test_utils.py index <HASH>..<HASH> 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -32,8 +32,8 @@ class TestPycaUtils(unittest.TestCase): res = '''{"services":{ "service":{ "type":"org.opencastproject.capture.a...
Adjust test for utils.get_service() to pass code inspection
py
diff --git a/reana_commons/models.py b/reana_commons/models.py index <HASH>..<HASH> 100644 --- a/reana_commons/models.py +++ b/reana_commons/models.py @@ -169,6 +169,8 @@ class Job(Base, Timestamp): max_restart_count = Column(Integer) deleted = Column(Boolean) logs = Column(String, nullable=True) + pr...
models: progress report related fields in Job * ADD name and prettified_cmd, to store information shown in the UI or the CLI related to the job progress.
py
diff --git a/examples/solvers/pdhg_denoising_tgv.py b/examples/solvers/pdhg_denoising_tgv.py index <HASH>..<HASH> 100644 --- a/examples/solvers/pdhg_denoising_tgv.py +++ b/examples/solvers/pdhg_denoising_tgv.py @@ -107,7 +107,7 @@ f = odl.solvers.SeparableSum(l2_norm, l1_norm_1, l1_norm_2) # Estimated operator norm, a...
MAINT: run more iterations in TGV denoising example
py
diff --git a/examples/mips5stage.py b/examples/mips5stage.py index <HASH>..<HASH> 100644 --- a/examples/mips5stage.py +++ b/examples/mips5stage.py @@ -74,7 +74,7 @@ class MipsCore(Pipeline): EW = MemBlock.EnabledWrite regfile[self.write_register] = EW(self.write_data, enable=self.regwrite) - ...
some small change I don't remember
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -38,14 +38,11 @@ INSTALL_REQUIRES = [ 'pyparsing', 'six', 'tqdm', + 'configparser; python_version < "3"', + 'functools32; python_version < "3"', + 'funcsigs; python_version < "3"', ] -if sys.version_...
Use setuptools platform dependency specifications instead of an if st… (#<I>) * Use setuptools platform dependency specifications instead of an if statement for requirements that are only needed in certain versions of Python. * Remove enum<I> from setup.py
py
diff --git a/test/test_util_functions.py b/test/test_util_functions.py index <HASH>..<HASH> 100644 --- a/test/test_util_functions.py +++ b/test/test_util_functions.py @@ -306,6 +306,20 @@ def test_check_argument_list5(): print("Expected no TypeError to be raised") assert False +def test_check_argume...
Add a test to check for the case in which the kernel's name is mentioned multiple times.
py
diff --git a/nion/instrumentation/scan_base.py b/nion/instrumentation/scan_base.py index <HASH>..<HASH> 100755 --- a/nion/instrumentation/scan_base.py +++ b/nion/instrumentation/scan_base.py @@ -1869,8 +1869,11 @@ class CameraFrameDataStream(Acquisition.DataStream): ...
Only send camera data if there is some.
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 @@ -23,6 +23,7 @@ from pkg_resources import working_set, VersionConflict from pkg_resources import Distribution ...
Skip this test because it now fails under Python <I> and earlier apparently due to a bug in the inspect module. Since the test passes under Python <I> and later, that should still serve as a suitable regression test.
py
diff --git a/kurt/__init__.py b/kurt/__init__.py index <HASH>..<HASH> 100644 --- a/kurt/__init__.py +++ b/kurt/__init__.py @@ -1082,13 +1082,13 @@ class Color(object): r = [int(x, 16) for x in split] (r, g, b) = r - self.r = r + self.r = int(r) """Red component, 0-...
Make sure Colors have int values
py
diff --git a/openquake/db/models.py b/openquake/db/models.py index <HASH>..<HASH> 100644 --- a/openquake/db/models.py +++ b/openquake/db/models.py @@ -528,6 +528,8 @@ class Output(models.Model): (u'gmf', u'Ground Motion Field'), (u'loss_curve', u'Loss Curve'), (u'loss_map', u'Loss Map'), + ...
Added missing output type values to Django model.
py
diff --git a/sqlserver/datadog_checks/sqlserver/activity.py b/sqlserver/datadog_checks/sqlserver/activity.py index <HASH>..<HASH> 100644 --- a/sqlserver/datadog_checks/sqlserver/activity.py +++ b/sqlserver/datadog_checks/sqlserver/activity.py @@ -69,6 +69,7 @@ DM_EXEC_REQUESTS_COLS = [ "wait_type", "wait_time...
Add missing wait_resource column for activity collections (#<I>) SQLServer [dm_exec_requests](<URL>) table has a `wait_resource` column, which we should show when we display blocking query trees
py
diff --git a/glue/cbcwebpage.py b/glue/cbcwebpage.py index <HASH>..<HASH> 100644 --- a/glue/cbcwebpage.py +++ b/glue/cbcwebpage.py @@ -185,7 +185,7 @@ class _imagelinkcpy(markup.page): # FIXME we cannot assume convert is installed everywhere # Is there a python library to do this? thumbname = 'Images/' + "t...
added sharpen because the images are blurry
py
diff --git a/PyFunceble/dataset/csv_base.py b/PyFunceble/dataset/csv_base.py index <HASH>..<HASH> 100644 --- a/PyFunceble/dataset/csv_base.py +++ b/PyFunceble/dataset/csv_base.py @@ -234,12 +234,8 @@ class CSVDatasetBase(DBDatasetBase): raise TypeError(f"<filter_map> should be {dict}, {type(filter_map)} gi...
Fix issue with the filtering of content. Indeed, before this patch, the was the filter was done may have been misleading or inappropriate.
py
diff --git a/nodeconductor/iaas/admin.py b/nodeconductor/iaas/admin.py index <HASH>..<HASH> 100644 --- a/nodeconductor/iaas/admin.py +++ b/nodeconductor/iaas/admin.py @@ -1,5 +1,5 @@ from django.contrib import admin -from django.utils.translation import ungettext +from django.utils.translation import ungettext, gettex...
Add pull installation state action to admin panel - nc-<I>
py
diff --git a/selenium/behave/steps/screenshot.py b/selenium/behave/steps/screenshot.py index <HASH>..<HASH> 100644 --- a/selenium/behave/steps/screenshot.py +++ b/selenium/behave/steps/screenshot.py @@ -23,4 +23,5 @@ def step_impl(context, title): os.mkdir(screenshot_directory) os.chdir(screenshot_directo...
Fix no endline at end of file
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name="Tree", - version="0.1b7", + version="0.1b8", description="A package for creating and drawing trees", url="https://github.com/PixelwarStudio/PyTree"...
update version to <I>b8 add svgwrite to requirements
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ packages = [ requires = [ 'skosprovider>=0.5.0', - 'requests>=2.3.0', + 'requests', 'rdflib' ]
Remove requirement on requests version. Refs #<I>.
py
diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index <HASH>..<HASH> 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -8,6 +8,7 @@ from warnings import catch_warnings import numpy as np import pytest +from pandas.compat import PY38 import pandas.u...
CI: xfail failing parquet test (#<I>)
py
diff --git a/plugins/maps/update.py b/plugins/maps/update.py index <HASH>..<HASH> 100755 --- a/plugins/maps/update.py +++ b/plugins/maps/update.py @@ -20,12 +20,12 @@ with open(file_source) as f: code = code.split('\n') -# Add MapActivity import -code.insert(31, 'import com.google.android.maps.MapActivity;') - # ...
Re-order array-based operations to occur in order and clear up an ambiguous line numbers.
py
diff --git a/haas/tests/test_discoverer.py b/haas/tests/test_discoverer.py index <HASH>..<HASH> 100644 --- a/haas/tests/test_discoverer.py +++ b/haas/tests/test_discoverer.py @@ -594,14 +594,14 @@ class TestDiscovererNonPackageImport(unittest.TestCase): del self.modules shutil.rmtree(self.tempdir) -...
Fix stupid error: s/version/version_info/
py
diff --git a/symengine/tests/test_sympy_conv.py b/symengine/tests/test_sympy_conv.py index <HASH>..<HASH> 100644 --- a/symengine/tests/test_sympy_conv.py +++ b/symengine/tests/test_sympy_conv.py @@ -790,9 +790,5 @@ def test_construct_dense_matrix(): # Test for issue #347 A = sympy.Matrix([[1, 2], [3, 5]]) ...
Update symengine/tests/test_sympy_conv.py
py
diff --git a/lptest.py b/lptest.py index <HASH>..<HASH> 100644 --- a/lptest.py +++ b/lptest.py @@ -115,9 +115,9 @@ class TestCases(unittest.TestCase): tmp = listparser.USER_AGENT listparser.USER_AGENT = "NewGlobalAgent" result = listparser.parse(url) + listparser.USER_AGENT = tmp ...
Reset listparser.USER_AGENT as soon as possible
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -234,7 +234,7 @@ latex_elements = { # author, documentclass [howto, manual, or own class]). latex_documents = [ (master_doc, 'periphery.tex', u'python-periphery Documentation', - u'Author', 'manual'), +...
docs: add author to sphinx LaTeX configuration
py
diff --git a/toytree/StyleChecker.py b/toytree/StyleChecker.py index <HASH>..<HASH> 100644 --- a/toytree/StyleChecker.py +++ b/toytree/StyleChecker.py @@ -112,8 +112,6 @@ class StyleChecker: self._assign_edge_colors() self._assign_edge_widths() - self._assign_radii() - @@ -438,18 +436,3...
radii coords assigned during render from verts, not in SC
py
diff --git a/bot/action/core/command/__init__.py b/bot/action/core/command/__init__.py index <HASH>..<HASH> 100644 --- a/bot/action/core/command/__init__.py +++ b/bot/action/core/command/__init__.py @@ -26,10 +26,16 @@ class CommandAction(IntermediateAction): def post_setup(self): self.parser.build_comm...
Share the throttler across all commands, as it was designed to be used
py
diff --git a/news_scraper/article.py b/news_scraper/article.py index <HASH>..<HASH> 100644 --- a/news_scraper/article.py +++ b/news_scraper/article.py @@ -6,7 +6,7 @@ class Article: def __init__(self, url): self.url = url - self.source = self.getSourceFromUrl() + self.source = self.get_sou...
Rename to this_case_for_functions
py
diff --git a/src/lander/ext/theme/_base.py b/src/lander/ext/theme/_base.py index <HASH>..<HASH> 100644 --- a/src/lander/ext/theme/_base.py +++ b/src/lander/ext/theme/_base.py @@ -130,7 +130,19 @@ class ThemePlugin(metaclass=ABCMeta): shutil.copy(attachment.file_path, output_attachment_path) # TO...
Add ThemePlugin.run_post_build hook method
py
diff --git a/src/toil/jobStores/abstractJobStore.py b/src/toil/jobStores/abstractJobStore.py index <HASH>..<HASH> 100644 --- a/src/toil/jobStores/abstractJobStore.py +++ b/src/toil/jobStores/abstractJobStore.py @@ -94,10 +94,10 @@ def getJobStoreClasses(): jobStoreClassNames = ( "toil.jobStores.azureJobSt...
Added google to getJobStoreClasses (resolves #<I>)
py
diff --git a/Lib/fontParts/objects/abstract/component.py b/Lib/fontParts/objects/abstract/component.py index <HASH>..<HASH> 100644 --- a/Lib/fontParts/objects/abstract/component.py +++ b/Lib/fontParts/objects/abstract/component.py @@ -5,7 +5,7 @@ class BaseComponent(BaseObject): def __repr__(self): pass ...
A vote for None -1 may cause folks who are newish at python to have scripts still work, but behave in unexpected ways. None is more explicit and will avoid this.
py
diff --git a/assemblerflow/generator/inspect.py b/assemblerflow/generator/inspect.py index <HASH>..<HASH> 100644 --- a/assemblerflow/generator/inspect.py +++ b/assemblerflow/generator/inspect.py @@ -382,7 +382,6 @@ class NextflowInspector: with open(self.log_file) as fh: for line in fh: - ...
Added static log parser to overview
py
diff --git a/maildir-deduplicate.py b/maildir-deduplicate.py index <HASH>..<HASH> 100755 --- a/maildir-deduplicate.py +++ b/maildir-deduplicate.py @@ -233,7 +233,7 @@ def get_canonical_header_value(header, value): if not m: break subject = m.group(3) - show_progress...
remove debugging introduced by #7
py
diff --git a/markovify/text.py b/markovify/text.py index <HASH>..<HASH> 100644 --- a/markovify/text.py +++ b/markovify/text.py @@ -181,7 +181,7 @@ class Text: number of words, and (b) `max_overlap_total` (default: 15). """ # Reject large chunks of similarity - overlap_ratio = int(round...
Remove redundant Python2 int converting relics
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,10 +12,14 @@ setup( version='1.0.0.rc1', description='package for converting dicom files to nifti', long_description=long_description, - author='icometrix', - author_email='it@icometrix.com', + lice...
DCMTONII-2: Additional stuff for proper release
py
diff --git a/tests/test_namespace.py b/tests/test_namespace.py index <HASH>..<HASH> 100644 --- a/tests/test_namespace.py +++ b/tests/test_namespace.py @@ -191,6 +191,20 @@ class TestBaseNamespace(TestCase): raise Exception("""We should not be able to delete an acl that doesn't exist""") + ...
added a test for the allowed event name regex
py
diff --git a/tests/test_event.py b/tests/test_event.py index <HASH>..<HASH> 100644 --- a/tests/test_event.py +++ b/tests/test_event.py @@ -217,7 +217,7 @@ def test_user_thread_is_not_omni_thread(): thread = Thread(target=thread_func) thread.start() thread.join() - assert thread_is_omni['result'] == Fa...
Fix Codacy warnings in test_event.py Use of `is` was recommended. Also removed the `assert eid == 1` in the thread because assertions in threads aren't picked up by pytest.
py
diff --git a/salt/returners/mysql_return.py b/salt/returners/mysql_return.py index <HASH>..<HASH> 100644 --- a/salt/returners/mysql_return.py +++ b/salt/returners/mysql_return.py @@ -127,13 +127,12 @@ def get_fun(fun): with serv: cur = serv.cursor() - sql = '''SELECT s.id, s.full_ret + sql...
Verified get_fun query now working.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup(name='smc-py', author='David LePage', author_email='dwlepage70@gmail.com', license='None', - packages=['smc', 'actions', 'api', 'elements'], + packages=['smc', 'smc.actions',...
update setup.py to get other modules
py
diff --git a/OpenPNM/Utilities/misc.py b/OpenPNM/Utilities/misc.py index <HASH>..<HASH> 100644 --- a/OpenPNM/Utilities/misc.py +++ b/OpenPNM/Utilities/misc.py @@ -2,6 +2,7 @@ import scipy as _sp import time as _time import scipy.sparse as _sprs import OpenPNM as _op +from scipy.spatial.distance import cdist as dist ...
oops...deleted dist from misc
py
diff --git a/src/cloudant/_common_util.py b/src/cloudant/_common_util.py index <HASH>..<HASH> 100644 --- a/src/cloudant/_common_util.py +++ b/src/cloudant/_common_util.py @@ -124,6 +124,7 @@ SEARCH_INDEX_ARGS = { 'include_docs': bool, 'limit': (int, NONETYPE), 'query': (STRTYPE, int), + 'q': (STRTYPE,...
Add 'q' as a valid search argument
py
diff --git a/bitstring.py b/bitstring.py index <HASH>..<HASH> 100644 --- a/bitstring.py +++ b/bitstring.py @@ -1716,11 +1716,18 @@ class Bits(object): def _insert(self, bs, pos): """Insert bs at pos.""" - # TODO: This can be speeded up in the same way as delete was. - end = self._slice...
Optimisation for inserting near the start of a bitstring.
py
diff --git a/src/githubcity/ghcity.py b/src/githubcity/ghcity.py index <HASH>..<HASH> 100644 --- a/src/githubcity/ghcity.py +++ b/src/githubcity/ghcity.py @@ -374,12 +374,9 @@ class GitHubCity: sort (str): field to sort the users """ exportedData = {} - exportedUsers = self.__expor...
Fix bug when there are a limit
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100644 --- a/test.py +++ b/test.py @@ -29,7 +29,7 @@ def main(): app = QtGui.QApplication(sys.argv) editor = QPythonCodeEdit() editor.show() - # editor.openFile(__file__) + editor.openFile(__file__) QtCore.QTimer.singleShot(7000, leave) ...
Try to enable open file again in travis test
py
diff --git a/hamster/db.py b/hamster/db.py index <HASH>..<HASH> 100644 --- a/hamster/db.py +++ b/hamster/db.py @@ -62,7 +62,10 @@ def get_facts(date): return fetchall(query, (date,)) -def add_fact(activity_id, fact_date = time.strftime('%Y%m%d'), fact_time = time.strftime('%H%M')): +def add_fact(activity_id, f...
doh, can not put dynamic default values in functions since they will be called just once on init :) svn path=/trunk/; revision=<I>
py
diff --git a/jawa/core/constants.py b/jawa/core/constants.py index <HASH>..<HASH> 100644 --- a/jawa/core/constants.py +++ b/jawa/core/constants.py @@ -164,7 +164,7 @@ class ConstantPool(object): count = unpack('>H', read(2))[0] iterable = xrange(1, count).__iter__() for index in iterable: - ...
Save another ~<I>ms/<I>ms by simplifying 'tag'
py
diff --git a/autofixture_tests/settings.py b/autofixture_tests/settings.py index <HASH>..<HASH> 100644 --- a/autofixture_tests/settings.py +++ b/autofixture_tests/settings.py @@ -14,6 +14,9 @@ DATABASES = { SITE_ID = 1 +# Set in order to catch timezone aware vs unaware comparisons +USE_TZ = True + # If you set th...
Enable timezone support in django This allows the tests to catch mismatches between timezone aware and unaware dates.
py
diff --git a/pyontutils/ttlser.py b/pyontutils/ttlser.py index <HASH>..<HASH> 100644 --- a/pyontutils/ttlser.py +++ b/pyontutils/ttlser.py @@ -90,6 +90,8 @@ class CustomTurtleSerializer(TurtleSerializer): DC.description, RDFS.subClassOf, RDFS.subPrope...
ttlser added isDefinedBy domain and range to predicate ordering and version bump since there are existing files whose serialization is changed
py
diff --git a/zipline/pipeline/factors/technical.py b/zipline/pipeline/factors/technical.py index <HASH>..<HASH> 100644 --- a/zipline/pipeline/factors/technical.py +++ b/zipline/pipeline/factors/technical.py @@ -2,12 +2,6 @@ Technical Analysis Factors -------------------------- """ -from bottleneck import ( - nana...
MAINT: Delegate to math_utils to leave bottleneck as optional
py
diff --git a/saltapi/netapi/rest_cherrypy.py b/saltapi/netapi/rest_cherrypy.py index <HASH>..<HASH> 100644 --- a/saltapi/netapi/rest_cherrypy.py +++ b/saltapi/netapi/rest_cherrypy.py @@ -65,11 +65,10 @@ class LowDataAdapter(object): @cherrypy.tools.json_out() def GET(self): - # FIXME: how to pass a c...
Change root URL command to issue a compound command
py
diff --git a/openquake/commands/compare.py b/openquake/commands/compare.py index <HASH>..<HASH> 100644 --- a/openquake/commands/compare.py +++ b/openquake/commands/compare.py @@ -65,7 +65,7 @@ def reduce(array, rtol): diff_idxs = set() # indices of the sites with differences for c in range(1, C): fo...
Increased tolerance [skip CI]
py
diff --git a/webview/gtk.py b/webview/gtk.py index <HASH>..<HASH> 100644 --- a/webview/gtk.py +++ b/webview/gtk.py @@ -55,7 +55,7 @@ class BrowserView: self.webview = webkit.WebView() self.webview.connect("notify::visible", self._handle_webview_ready) self.webview.props.settings.props.enable_...
fix resizing width/height: <I>% problem on GTK
py
diff --git a/django_pyodbc/operations.py b/django_pyodbc/operations.py index <HASH>..<HASH> 100644 --- a/django_pyodbc/operations.py +++ b/django_pyodbc/operations.py @@ -74,12 +74,14 @@ class DatabaseOperations(BaseDatabaseOperations): if lookup_type == 'day': return "Convert(datetime, Convert(va...
add optional 3rd arg in operations.field_case_sql() + neither internal_type nor db_type are used anywhere in field_case_sql function + complies with both django <I> API (3 args) and Django <I> (2 args) + patch proposed by <EMAIL> on <URL>
py
diff --git a/pymatgen/core/periodic_table.py b/pymatgen/core/periodic_table.py index <HASH>..<HASH> 100644 --- a/pymatgen/core/periodic_table.py +++ b/pymatgen/core/periodic_table.py @@ -1088,7 +1088,7 @@ class Specie(MSONable): """ return (isinstance(other, Specie) and self.symbol == other.symbol ...
Fix bug introduced by overzealous cleanup.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -8,7 +8,8 @@ A Python package which provides tools to convert files from IDX format from setuptools import setup import os -README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() +with open("README.md",...
Updated code to display README.md properly on PyPi README.md file is not properly displayed on PyPi. Fixed the code to display it properly.
py
diff --git a/modeltranslation/fields.py b/modeltranslation/fields.py index <HASH>..<HASH> 100644 --- a/modeltranslation/fields.py +++ b/modeltranslation/fields.py @@ -249,6 +249,9 @@ class TranslationField(object): else: super(TranslationField, self).save_form_data(instance, data) + def decon...
Add deconstruct() to field definition.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages -console_scripts = ['eth=pyethereum.eth:main', +console_scripts = ['pyeth=pyethereum.eth:main', 'pyethtool=tools.pyethtool_cli:main'] setup(n...
rename executable eth to pyeth
py
diff --git a/uiautomation/uiautomation.py b/uiautomation/uiautomation.py index <HASH>..<HASH> 100644 --- a/uiautomation/uiautomation.py +++ b/uiautomation/uiautomation.py @@ -2365,10 +2365,17 @@ class Control(LegacyIAccessiblePattern, QTPLikeSyntaxSupport): def AddSearchProperty(self, **searchPorpertyDict): ...
add RegexName, support find name by regex
py
diff --git a/loguru/__init__.py b/loguru/__init__.py index <HASH>..<HASH> 100644 --- a/loguru/__init__.py +++ b/loguru/__init__.py @@ -828,6 +828,7 @@ class Logger: function(self, message, *args, **kwargs) @staticmethod + @functools.lru_cache() def make_log_function(level, log_exception=0): ...
Avoid creating a new function at each "log()" call
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -import platform +import sys from setuptools import setup, find_packages from version import get_version from commands import preconfigure, configure, create_bucket_types, \ @@ -7,16 +7,1...
Include dependency on pyOpenSSL only on Python < <I>
py
diff --git a/tahoma_api/tahoma_api.py b/tahoma_api/tahoma_api.py index <HASH>..<HASH> 100755 --- a/tahoma_api/tahoma_api.py +++ b/tahoma_api/tahoma_api.py @@ -908,7 +908,10 @@ class ActionGroup: def __init__(self, data): """Initalize the Tahoma Action Group.""" - self.__last_update = data['lastUp...
Issue <I> : ActionGroup object might not contain lastUpdateTime attribute Testing the attribute existance before assigning it.
py
diff --git a/ch.py b/ch.py index <HASH>..<HASH> 100755 --- a/ch.py +++ b/ch.py @@ -98,7 +98,7 @@ class Ch(object): for idx, a in enumerate(args): kwargs[cls.term_order[idx]] = a elif len(args)>0: - kwargs['x'] = args[0] + kwargs['x'] = np.asarray(args[0], np....
ch.py: Make sure incoming arrays are float<I>; otherwise, arrays initialized with ints may not optimize well.
py
diff --git a/tests/__init__.py b/tests/__init__.py index <HASH>..<HASH> 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -12,6 +12,7 @@ from contextlib import contextmanager from functools import reduce import pytest +import requests from github_release import get_releases, gh_ref_delete, gh_release_del...
tests: Completely ignore 4xx errors associated with clear_github_release_and_tags
py
diff --git a/bumpr/releaser.py b/bumpr/releaser.py index <HASH>..<HASH> 100644 --- a/bumpr/releaser.py +++ b/bumpr/releaser.py @@ -136,6 +136,8 @@ class Releaser(object): self.execute(self.config.clean) def perform(self, filename, before, after): + if before == after: + return if self.co...
Do not write file if the content is not changed
py
diff --git a/holoviews/plotting/bokeh/callbacks.py b/holoviews/plotting/bokeh/callbacks.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/callbacks.py +++ b/holoviews/plotting/bokeh/callbacks.py @@ -1223,7 +1223,8 @@ class LinkCallback(param.Parameterized): return (plot, links) ...
Minor fix for Link lookups (#<I>)
py
diff --git a/equations.py b/equations.py index <HASH>..<HASH> 100644 --- a/equations.py +++ b/equations.py @@ -874,7 +874,7 @@ def theta_from_p_T(p, T): @assumes('bolton', 'constant Cp') -def thetae_from_theta_TL_rv_Bolton(theta, TL, rv): +def thetae_from_theta_Tlcl_rv_Bolton(theta, Tlcl, rv): ''' Calcul...
corrected TL instance to Tlcl
py
diff --git a/syn/base_utils/rand.py b/syn/base_utils/rand.py index <HASH>..<HASH> 100644 --- a/syn/base_utils/rand.py +++ b/syn/base_utils/rand.py @@ -190,14 +190,12 @@ def rand_dispatch(typ, **kwargs): raise TypeError('Cannot dispatch random generator for type: {}'. format(typ)) -def rand_t...
Refactoring rand_primitive and rand_hashable
py
diff --git a/everest/entities/base.py b/everest/entities/base.py index <HASH>..<HASH> 100644 --- a/everest/entities/base.py +++ b/everest/entities/base.py @@ -12,12 +12,12 @@ from everest.entities.interfaces import IAggregate from everest.entities.interfaces import IEntity from everest.exceptions import NoResultsExce...
Fix get_by_slug to fetch entities only once
py
diff --git a/abilian/services/indexing/service.py b/abilian/services/indexing/service.py index <HASH>..<HASH> 100644 --- a/abilian/services/indexing/service.py +++ b/abilian/services/indexing/service.py @@ -221,7 +221,7 @@ class WhooshIndexService(Service): config = current_app.config.get("SEARCH_DEFAULT_BOOST...
Fix: search wasn't really configurable.
py
diff --git a/src/Exscript/protocols/Protocol.py b/src/Exscript/protocols/Protocol.py index <HASH>..<HASH> 100644 --- a/src/Exscript/protocols/Protocol.py +++ b/src/Exscript/protocols/Protocol.py @@ -263,7 +263,7 @@ class Protocol(object): if logfile is None: self.log = None else: - ...
minor cleanup for Protocol constructor logfile argument.
py
diff --git a/py/selenium/webdriver/remote/webelement.py b/py/selenium/webdriver/remote/webelement.py index <HASH>..<HASH> 100755 --- a/py/selenium/webdriver/remote/webelement.py +++ b/py/selenium/webdriver/remote/webelement.py @@ -158,7 +158,7 @@ class WebElement(object): if isinstance(val, Keys): ...
fix regresssion with overridding str with basestring in webelement
py